Function at 0x51f4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x71c2f2
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x94]
cmp eax, 1
je 0x51fc89
mov ecx, esi
call fcn.0063e7f0
cmp eax, 1
je 0x51fc89
mov ecx, esi
call fcn.004ef890
cmp eax, 1
je 0x51fc89
mov edx, dword [esi + 0x1f8]
mov ecx, dword [esi + 0xa8c]
xor eax, eax
cmp edx, eax
je 0x51f571
cmp ecx, eax
je 0x51f567
cmp ecx, 4
je 0x51f567
cmp ecx, 5
je 0x51f567
cmp ecx, 6
jne 0x51f57b
mov eax, dword [0x745dbc]
jmp 0x51fc8e
mov dword [esi + 0xa8c], 0xffffffff
mov edx, dword [esi + 0x340]
cmp edx, eax
je 0x51fc89
mov ecx, dword [esp + 0x13c]
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x8c], edi
mov edi, dword [ecx + 0x3c]
mov dword [esp + 0x84], edi
mov edi, dword [ecx + 0x40]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x48], edi
mov edi, dword [ecx + 0x44]
mov dword [esp + 0x4c], edi
mov di, word [ecx + 0x6e]
cmp di, 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
jb 0x51f609
mov ebx, dword [ecx + 0x48]
mov dword [esp + 0x10], ebx
jmp 0x51f611
mov dword [esp + 0x10], 0x7f000000
cmp di, 6
jb 0x51f61a
mov eax, dword [ecx + 0x4c]
test al, 1
mov ecx, 0
setg cl
mov edi, eax
mov ebp, eax
mov ebx, eax
sar edi, 4
sar ebp, 7
sar ebx, 9
mov dword [esp + 0x50], ecx
mov ecx, eax
sar ecx, 1
and ecx, 1
mov dword [esp + 0x54], ecx
mov ecx, eax
sar ecx, 2
and ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, eax
sar eax, 0xa
and eax, 1
sar ecx, 3
mov dword [esp + 0x80], eax
mov dword [edx + 0x240], eax
mov eax, dword [esi + 0x8e8]
and ecx, 1
and edi, 7
and ebp, 3
and ebx, 1
cmp eax, 1
mov dword [esp + 0x5c], ecx
jne 0x51f689
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x13c]
cmp word [edx + 0x6e], 7
jb 0x51f738
mov eax, edx
mov ecx, dword [eax + 0x50]
lea eax, [esi + 0x90]
push eax
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x3c], ecx
call fcn.00423bc0
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
add esp, 0xc
fld dword [esp + 0x24]
mov dword [esp + 0x14], 0
fmul dword [esp + 0x24]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fcompp
fnstsw ax
test ah, 0x41
jne 0x51f740
push 0
push 0
push 0x7f000000
push 0x7f000000
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x58]
push eax
lea eax, [esi + 0x90]
push eax
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.0050c330
test eax, eax
jne 0x51f740
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x13c]
mov cx, word [eax + 0x6e]
cmp cx, 8
jb 0x51f75a
mov edx, dword [eax + 0x54]
mov dword [esp + 0x3c], edx
jmp 0x51f762
mov dword [esp + 0x3c], 0
cmp cx, 9
jb 0x51f771
mov edx, dword [eax + 0x58]
mov dword [esp + 0x58], edx
jmp 0x51f779
mov dword [esp + 0x58], 0
cmp cx, 0xa
jb 0x51f78d
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x6c], edx
cmp cx, 0xc
jb 0x51f7a1
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x68]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x34]
test eax, eax
jbe 0x51f8b1
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x51f8b1
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.004aede0
mov ecx, eax
call fcn.004ade40
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.004aede0
mov ecx, eax
call fcn.004adfa0
test eax, eax
jl 0x51f8b1
mov ecx, dword [esi + 0x340]
push 0x747db8
push 0
call fcn.005b5e90
lea ecx, [esp + 0xbc]
call fcn.005034d0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xbc]
mov dword [esp + 0xd0], ecx
push eax
mov ecx, esi
mov dword [esp + 0x138], 0
mov dword [esp + 0xd8], edx
mov dword [esi + 0xa8c], 1
call fcn.004edba0
mov esi, dword [0x745dc0]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x134], 0xffffffff
call fcn.004015a0
mov eax, esi
jmp 0x51fc8e
cmp dword [esp + 0x2c], 1
jne 0x51f9c5
fld dword [esp + 0x58]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x41
jne 0x51f9c5
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.004aede0
mov ecx, eax
call fcn.004ade40
fld dword [esp + 0x58]
mov ecx, dword [0x7a39fc]
fmul dword [0x73d6fc]
mov edx, dword [ecx + 8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], edx
push ecx
call fcn.006fae8c
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x9c]
push 0
push edx
push eax
call fcn.004aede0
mov ecx, eax
call fcn.004adf50
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x64]
push ebx
push edx
mov edx, dword [esp + 0x48]
push ebp
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x38]
xor edi, edi
push edi
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x174]
push edx
xor edx, edx
mov dx, word [ecx + 0x6c]
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
push edx
call fcn.004f8a50
mov eax, dword [esi + 0x340]
mov dword [eax + 0x26c], edi
mov dword [eax + 0x270], edi
mov dword [eax + 0x274], edi
mov dword [esi + 0xa8c], 1
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.004aed70
mov ecx, eax
call fcn.004d8230
cmp al, byte [0x74666c]
jne case.0x51fa03.6
mov ecx, dword [esp + 0x60]
movzx eax, byte [ecx + 8]
add eax, 0xfffffffb
cmp eax, 5
ja case.0x51fa03.6
jmp dword [eax*4 + 0x520968]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov edx, dword [ecx]
call dword [edx + 0x40]
mov ecx, dword [esi + 0x340]
add eax, 0x90
push eax
call fcn.0050e250
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [eax + 0x2bc]
test ecx, ecx
je 0x51fb13
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
lea eax, [esi + 0x90]
push eax
call dword [edx + 0x40]
mov ecx, eax
call fcn.0058c8a0
push 0x3f000000
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x90]
push eax
lea ecx, [esp + 0x120]
push ecx
call fcn.00423bc0
push eax
lea edx, [esp + 0x134]
push edx
call fcn.004ab180
add esp, 0x14
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00423bf0
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x110]
push edx
call fcn.00423b90
mov ecx, dword [eax]
add esp, 0x18
push 0
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x64]
push ebx
push ecx
mov ecx, dword [esp + 0x48]
push ebp
push edi
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push 0
push ecx
push edx
push 0x7f000000
lea ecx, [esp + 0x78]
jmp 0x51fff0
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
mov ecx, esi
call fcn.004f6000
test eax, eax
je case.0x51fa03.6
push 0x34
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov dword [esp + 0x134], 1
je 0x51fb53
mov ecx, eax
call fcn.004d7540
mov edi, eax
jmp 0x51fb55
xor edi, edi
mov word [edi], 0x1e
mov edx, dword [esi + 4]
push edx
push 0
mov ecx, edi
mov dword [esp + 0x13c], 0xffffffff
call fcn.004d7780
mov eax, dword [0x7a39fc]
mov edx, dword [0x7441dc]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x10]
push edi
push edx
mov edx, dword [esi + 4]
push eax
push edx
push 0
push 0
call fcn.004aed80
mov ecx, eax
call fcn.004b08d0
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
call fcn.004ae6b0
test eax, eax
je case.0x51fa03.6
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x340]
mov dword [esp + 0x58], eax
add eax, 0x90
push eax
mov dword [esp + 0x84], eax
call fcn.0050e250
mov ecx, dword [esp + 0x58]
call fcn.004cb120
test eax, eax
jne 0x51fd05
mov eax, dword [esp + 0x58]
lea ecx, [eax + 0x314]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
fsub dword [esp + 0x40]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], edx
fld dword [esp + 0x24]
fsub dword [esp + 0x44]
mov dword [esp + 0x28], ecx
fld dword [esp + 0x28]
mov ecx, dword [eax + 0x310]
fsub dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jne 0x51fca9
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x73f404]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
je 0x51fcaf
test byte [esi + 0x9f0], 2
jne 0x5203f1
cmp dword [esp + 0x54], 1
jne 0x51fc77
mov eax, dword [esp + 0x3c]
push eax
mov ecx, esi
call fcn.005110b0
mov ecx, dword [esi + 0x340]
push str.I_have_no_legs__I_cant_feel_my_legs____
push 0
call fcn.005b5e90
mov eax, dword [0x745dc4]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 4
fstp st(0)
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0
push edx
push eax
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x4c]
push ebx
push eax
mov eax, dword [esp + 0x6c]
push ebp
push edi
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x78]
push 0
push edx
mov edx, dword [esp + 0x40]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x178]
xor edx, edx
mov dx, word [ecx + 0x6c]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
push edx
call fcn.004f8a50
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov ecx, dword [esp + 0x58]
call fcn.004cb120
fld dword [esp + 0x68]
mov ecx, dword [esp + 0x80]
fcomp dword [0x73d700]
mov edx, dword [ecx]
add eax, 0x11c
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], eax
fnstsw ax
mov dword [esp + 0x20], edx
test ah, 0x44
mov dword [esp + 0x28], ecx
jp 0x51fd57
fld dword [esp + 0x6c]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jnp 0x51fdd6
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed8b0
add eax, 0x2c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.005ed8b0
lea edx, [esp + 0x68]
push edx
add eax, 0x2cc
push eax
lea eax, [esp + 0xec]
push eax
call fcn.004a9bb0
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x104]
push edx
call fcn.00423b90
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
add esp, 0x18
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x7f000000
lea ecx, [esp + 0x20]
push ecx
lea eax, [esi + 0x90]
push eax
lea edx, [esp + 0x110]
push edx
call fcn.00423bc0
push eax
call fcn.004ab100
fmul dword [0x73e320]
add esp, 0x10
fcom dword [0x741be0]
fnstsw ax
test ah, 0x41
je 0x51fe13
fstp st(0)
fld dword [0x741be0]
fld dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
fsub dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
fstp dword [esp + 0x74]
fld dword [esp + 0x44]
fsub dword [esp + 0x24]
fstp dword [esp + 0x78]
fld dword [esp + 0x48]
fsub dword [esp + 0x28]
fstp dword [esp + 0x7c]
jne 0x51ff25
fld dword [esp + 0x7c]
fmul dword [esp + 0x7c]
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fld st(1)
fmul st(2)
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x51ff27
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
mov ecx, esi
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
call fcn.004ee440
fld dword [esp + 0x68]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jp 0x520011
fld dword [esp + 0x6c]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jp 0x520011
fld dword [esp + 0x30]
push 0
fsub dword [esp + 0x68]
push ecx
mov ecx, esi
fstp dword [esp]
push edi
call fcn.004f6000
test eax, eax
je case.0x51fa03.6
mov ecx, dword [esi + 0x340]
call fcn.005d0ec0
mov eax, dword [esi]
push 0x2710
mov ecx, esi
call dword [eax + 0x7c]
mov dword [esi + 0xa8c], 1
mov eax, dword [0x745dc0]
jmp 0x51fc8e
fstp st(0)
mov eax, dword [esi + 0x340]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x5c]
push 1
push eax
push 0x41a00000
lea edx, [esp + 0x30]
push edx
call fcn.004cb120
mov ecx, eax
call fcn.004be860
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00423bc0
fld dword [esp + 0x88]
fmul dword [esp + 0x88]
add esp, 0xc
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x51fe76
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x64]
push ebx
push eax
mov eax, dword [esp + 0x48]
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x38]
push 0
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x58]
mov edx, dword [esp + 0x174]
push eax
xor eax, eax
mov ax, word [edx + 0x6c]
push ecx
mov ecx, esi
push eax
call fcn.004f8a50
mov eax, dword [0x745dc0]
jmp 0x51fc8e
lea ecx, [esp + 0x20]
push ecx
lea eax, [esi + 0x90]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00423bc0
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
add esp, 0xc
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fcomp dword [0x73d708]
fnstsw ax
test ah, 5
jp case.0x51fa03.6
mov ecx, dword [esi + 0x340]
call fcn.005d0ec0
mov eax, dword [esi]
push 0x2710
mov ecx, esi
mov dword [esi + 0xa8c], 1
call dword [eax + 0x7c]
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x340]
mov dword [esp + 0x2c], eax
add eax, 0x90
push eax
call fcn.0050e250
mov ecx, dword [esp + 0x2c]
call fcn.005890d0
test eax, eax
je 0x5201ed
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
mov ecx, esi
call fcn.004f6000
test eax, eax
je 0x5201ed
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x2cc]
test al, al
push 0x34
jne 0x52013e
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov dword [esp + 0x134], 2
je 0x5200f9
mov ecx, eax
call fcn.004d7540
jmp 0x5200fb
xor eax, eax
push eax
mov word [eax], 0x1f
mov edx, dword [0x7a39fc]
mov eax, dword [0x7441dc]
mov ecx, dword [edx + 8]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push 0
push 0
mov dword [esp + 0x14c], 0xffffffff
call fcn.004aed80
mov ecx, eax
call fcn.004b08d0
mov eax, dword [0x745dbc]
jmp 0x51fc8e
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov dword [esp + 0x134], 3
je 0x520164
mov ecx, eax
call fcn.004d7540
mov edi, eax
jmp 0x520166
xor edi, edi
mov word [edi], 0x1e
mov ecx, dword [esi + 4]
push ecx
push 0
mov ecx, edi
mov dword [esp + 0x13c], 0xffffffff
call fcn.004d7780
mov edx, dword [0x7a39fc]
mov eax, dword [0x7441dc]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x10]
push edi
push eax
mov eax, dword [esi + 4]
push edx
push eax
push 0
push 0
call fcn.004aed80
mov ecx, eax
call fcn.004b08d0
mov edx, dword [esi]
push 0x2710
mov ecx, esi
call dword [edx + 0x7c]
mov ecx, dword [esi + 0x340]
call fcn.005cefa0
mov ecx, dword [esi + 0x340]
call fcn.005cf060
mov ecx, dword [esi + 0x340]
call fcn.005d00a0
mov dword [esi + 0xa8c], 1
mov eax, dword [0x745dc0]
jmp 0x51fc8e
test ebx, ebx
jne case.0x51fa03.6
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004ee440
fld dword [esp + 0x30]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x44
jp 0x52027e
fld dword [esp + 0x20]
lea ecx, [esp + 0xb0]
fsub dword [esp + 0x40]
push ecx
fstp dword [esp + 0xb4]
fld dword [esp + 0x28]
fsub dword [esp + 0x48]
fstp dword [esp + 0xb8]
fld dword [esp + 0x2c]
fsub dword [esp + 0x4c]
fstp dword [esp + 0xbc]
call fcn.004ab100
fcomp dword [0x73d708]
add esp, 4
fnstsw ax
test ah, 0x41
jne case.0x51fa03.6
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x64]
push 1
push edx
mov edx, dword [esp + 0x44]
push ebp
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x38]
push 0
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x174]
push edx
xor edx, edx
mov dx, word [ecx + 0x6c]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
push edx
call fcn.004f8a50
mov dword [esi + 0xa8c], 1
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [esi + 0x340]
add eax, 0x90
push eax
call fcn.0050e250
test ebx, ebx
jne case.0x51fa03.6
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
call dword [edx + 0x48]
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x18]
push ecx
push ebx
mov ecx, esi
call fcn.004ee440
fld dword [esp + 0x30]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x44
jp 0x52038d
fld dword [esp + 0x20]
lea edx, [esp + 0x98]
fsub dword [esp + 0x40]
push edx
fstp dword [esp + 0x9c]
fld dword [esp + 0x28]
fsub dword [esp + 0x48]
fstp dword [esp + 0xa0]
fld dword [esp + 0x2c]
fsub dword [esp + 0x4c]
fstp dword [esp + 0xa4]
call fcn.004ab100
fcomp dword [0x73d708]
add esp, 4
fnstsw ax
test ah, 0x41
jne case.0x51fa03.6
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x64]
push 1
push eax
mov eax, dword [esp + 0x44]
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x170]
push ebx
push edx
xor edx, edx
mov dx, word [ecx + 0x6c]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
push edx
call fcn.004f8a50
mov dword [esi + 0xa8c], 1
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov ecx, esi
call fcn.004cb120
test eax, eax
je 0x520134
mov ecx, esi
call fcn.004cb120
test eax, eax
je 0x5204c9
mov ecx, esi
call fcn.004cb120
mov edi, dword [esp + 0x4c]
mov ecx, dword [eax + 0x120]
add eax, 0x11c
cmp ecx, edi
jne 0x5204cd
lea ecx, [esi + 0x90]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00423bc0
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
add esp, 0xc
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fcomp dword [0x73dfec]
fnstsw ax
test ah, 0x41
jp 0x5204cd
mov eax, dword [esi + 0x340]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.004be5e0
test eax, eax
je 0x5204a1
push 0
push 1
push 1
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.004cd1a0
jmp 0x5204b3
mov ecx, dword [esi + 0x340]
push str.Bailed_the_desired_position_is_unsafe.
push 0
call fcn.005b5e90
mov eax, dword [esi]
push 0x2711
mov ecx, esi
call dword [eax + 0x7c]
mov eax, dword [0x745dc0]
jmp 0x51fc8e
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
xor ecx, ecx
xor ebx, ebx
cmp edx, ebx
mov edx, dword [esi + 0x340]
setne cl
mov dword [edx], ecx
mov eax, dword [esi + 0x340]
mov ecx, dword [esi + 4]
mov dword [eax + 0x2c], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x340]
mov dword [edx + 0x30], eax
mov ecx, dword [esi + 0x340]
mov dword [esi + 0xa14], ebx
cmp dword [ecx + 0x84], ebx
jne 0x520537
fld dword [ecx + 0x60]
mov edx, dword [ecx + 0x5c]
fstp dword [esp + 0x18]
fld dword [ecx + 0x64]
mov eax, edx
fstp dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x70]
mov dword [esp + 0x14], edx
jmp 0x520560
fld dword [ecx + 0x78]
mov edx, dword [ecx + 0x74]
fstp dword [esp + 0x18]
fld dword [ecx + 0x7c]
mov eax, edx
fstp dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x80]
mov dword [esp + 0x14], edx
cmp eax, edi
fld dword [esp + 0x8c]
fsub dword [esp + 0x20]
mov edx, dword [esp + 0x18]
fld dword [esp + 0x84]
mov dword [esp + 0x24], edx
fsub dword [esp + 0x24]
fld dword [esp + 0x88]
fsub dword [esp + 0x28]
jne 0x5205b6
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x73dfec]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
jne 0x520659
jmp 0x5205bc
fstp st(0)
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x8c]
mov dword [ecx + 0x5c], edx
mov eax, dword [esi + 0x340]
mov ecx, dword [esp + 0x84]
mov dword [eax + 0x60], ecx
mov edx, dword [esi + 0x340]
mov eax, dword [esp + 0x88]
mov dword [edx + 0x64], eax
mov ecx, dword [esi + 0x340]
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x70], edi
mov ecx, dword [esi + 0x340]
mov dword [ecx + 0x68], edx
call fcn.005cec90
fld dword [esi + 0x90]
mov eax, dword [esi + 0x340]
fstp dword [eax + 0x74]
fld dword [esi + 0x94]
mov ecx, dword [esi + 0x340]
fstp dword [ecx + 0x78]
fld dword [esi + 0x98]
mov edx, dword [esi + 0x340]
fstp dword [edx + 0x7c]
mov eax, dword [esi + 0x340]
mov ecx, dword [esi + 0x8c]
mov dword [eax + 0x80], ecx
mov edx, dword [esi + 0x340]
mov dword [edx + 0x58], 1
mov eax, dword [esi + 0x340]
mov dword [eax + 0x88], ebx
mov eax, dword [esi + 0x340]
cmp dword [eax + 0x88], ebx
jne 0x5208ed
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x198], ecx
mov edx, dword [esi + 0x340]
lea ebp, [esi + 0x90]
push ebp
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [edx + 0x268], ebx
call fcn.00423bc0
mov eax, dword [esi + 0x50c]
add esp, 0xc
cmp eax, 0x7f000000
je 0x5206e0
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fcomp dword [0x745e5c]
fnstsw ax
test ah, 5
jp 0x5206e0
mov edx, dword [esi + 0x340]
mov dword [edx + 0x194], 1
cmp dword [esi + 0x1f8], ebx
je 0x5206f2
mov dword [esi + 0xa8c], 2
mov eax, dword [0x7a39fc]
mov edx, dword [0x832824]
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x340]
push edx
push eax
call fcn.004ae6b0
mov ecx, eax
call fcn.004c6f70
mov ecx, dword [esi + 0x340]
mov edi, eax
mov dword [ecx + 0x198], ebx
cmp edi, dword [0x745dc0]
jne 0x52080d
mov ecx, dword [esi + 0x340]
mov edi, dword [ecx + 0x30]
push 0x7f000000
mov dword [esi + 0x508], edi
call fcn.004cc440
cmp edi, dword [esp + 0x10]
je 0x520757
mov edx, dword [esp + 0x13c]
mov dword [edx + 0x48], edi
movzx eax, byte [esp + 0x3c]
mov ecx, dword [esi + 0x340]
mov dword [ecx + 0x28], eax
cmp dword [esp + 0x50], ebx
mov edx, dword [esi + 0x340]
mov dword [edx + 0x9c], ebx
mov ecx, esi
je 0x52078f
mov eax, dword [esi]
push 0x2714
call dword [eax + 0x7c]
mov dword [esi + 0xa98], 1
jmp 0x52079f
mov edx, dword [esi]
push 0x2712
call dword [edx + 0x7c]
mov dword [esi + 0xa98], ebx
mov ecx, esi
push 8
call fcn.004f87d0
cmp dword [esi + 0x1f8], ebx
je 0x5207e8
mov eax, dword [esi + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
lea edx, [esi + 0xb4]
push edx
lea edx, [esi + 0xb0]
push edx
push eax
call fcn.004ae830
mov ecx, eax
call fcn.004ade40
push 1
mov ecx, esi
mov dword [esi + 0xa8c], ebx
call fcn.0051d9c0
jmp 0x5207ef
mov ecx, esi
call fcn.0051bb10
mov ecx, dword [0x7a39fc]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 4]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call fcn.004b2a50
mov eax, edi
jmp 0x51fc8e
cmp edi, dword [0x745dc4]
jne 0x52095f
mov ecx, dword [esi + 0x340]
push 0x747e10
push ebx
call fcn.005b5e90
cmp dword [esi + 0x1f8], ebx
je 0x52083c
mov dword [esi + 0xa8c], 2
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esi + 0x340]
movzx eax, bl
mov dword [ecx + 0x28], eax
mov edx, dword [esi]
push 0x2710
mov ecx, esi
call dword [edx + 0x7c]
cmp dword [esp + 0x54], 1
jne 0x520867
push ebx
mov ecx, esi
call fcn.005110b0
mov eax, dword [esi + 0x340]
mov ecx, dword [ebp]
mov dword [eax + 0x5c], ecx
fld dword [esi + 0x94]
mov edx, dword [esi + 0x340]
fstp dword [edx + 0x60]
fld dword [esi + 0x98]
mov eax, dword [esi + 0x340]
fstp dword [eax + 0x64]
mov ecx, esi
call fcn.004cb120
mov edx, dword [eax + 0x120]
mov ecx, dword [esi + 0x340]
add eax, 0x11c
mov dword [ecx + 0x70], edx
mov eax, dword [0x83280c]
test eax, eax
jne 0x52095f
mov eax, dword [esp + 0x34]
test eax, eax
jbe 0x52095f
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x52095f
push 0
push 1
push 1
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.004cd1a0
mov eax, dword [0x745dc0]
jmp 0x51fc8e
cmp dword [esp + 0x50], ebx
mov ecx, esi
je 0x520901
mov edx, dword [esi]
push 0x2714
call dword [edx + 0x7c]
jmp 0x52090b
mov eax, dword [esi]
push 0x2712
call dword [eax + 0x7c]
mov eax, dword [esi + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
lea edx, [esi + 0xb4]
push edx
lea edx, [esi + 0xb0]
push edx
push eax
call fcn.004ae830
mov ecx, eax
call fcn.004ade40
push 8
mov ecx, esi
call fcn.004f87d0
cmp dword [esi + 0x1f8], ebx
mov dword [esi + 0xa8c], ebx
je 0x520956
mov edi, dword [0x745dbc]
mov eax, edi
jmp 0x51fc8e
mov ecx, esi
call fcn.0051bb10
mov edi, eax
mov eax, edi
jmp 0x51fc8e