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

Disassembly:
jmp 0x4fff30
sub esp, 0x170
push ebx
push ebp
push esi
mov esi, dword [esp + 0x180]
movzx ebx, word [esi + 0x220]
push edi
push ebx
mov ebp, ecx
call fcn.004088be
mov edi, eax
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], edi
call fcn.0040a0fb
push 0
lea eax, [esp + 0x24]
push eax
push 0xd4
mov ecx, 0x7b40c0
call fcn.00404bf1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x178], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x17c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x184], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x190], ecx
lea ecx, [esp + 0xe0]
mov dword [esi + 0x188], edx
mov dword [esi + 0x18c], eax
call fcn.0040a0fb
push 0
lea edx, [esp + 0xe4]
push edx
push 0x3f
mov ecx, 0x7b40c0
call fcn.00404bf1
push 0x1e1e1e
lea eax, [esp + 0xe4]
push eax
push 0xffffffffffffffff
push 0x645292
mov ecx, esi
call fcn.0040a957
lea ecx, [esp + 0x40]
mov dword [esi + 0x170], 1
call fcn.0040a0fb
push 0
lea ecx, [esp + 0x44]
push ecx
push 0xd5
mov ecx, 0x7b40c0
call fcn.00404bf1
lea eax, [esi + 0x194]
test eax, eax
je 0x500036
push eax
mov ecx, esi
call fcn.0040af8d
test edi, 0x800
je 0x500074
push ebx
mov ecx, ebp
call fcn.004010fa
test eax, eax
je 0x500b87
mov edx, dword [esp + 0x194]
mov ecx, dword [esp + 0x18c]
push edx
mov edx, dword [esp + 0x18c]
push ecx
push edx
push eax
push esi
mov ecx, ebp
call fcn.00401ea6
jmp 0x500b87
test edi, 0x400
je 0x500098
push ebx
mov ecx, ebp
call fcn.004010fa
test eax, eax
je 0x500b87
push eax
push esi
call fcn.00406d39
jmp 0x500b87
test edi, 0x200
je 0x5000bc
push ebx
mov ecx, ebp
call fcn.004010fa
test eax, eax
je 0x500b87
push eax
push esi
call fcn.004048b8
jmp 0x500b87
test edi, 0x3000
jne 0x500b74
test edi, 0x4000
je 0x5002c5
push ebx
mov ecx, ebp
call fcn.004010fa
mov edi, eax
test edi, edi
je 0x500b87
push ebx
call fcn.00402e23
test eax, eax
lea eax, [edi + 2]
push eax
lea ecx, [esp + 0x64]
push 0x649d70
push ecx
je 0x5001ac
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
movzx eax, word [edi + 0x48]
mov ecx, 0x4010
cmp ax, cx
je 0x50014d
mov edx, 0x401a
cmp ax, dx
jne 0x500194
push 0x94a
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
push 0x956
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea eax, [esp + 0x68]
push str._s__s
push eax
call fcn.0060a295
add esp, 0x10
push 7
push 0
push 0xffffb0
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
mov edx, dword [esp + 0x190]
push 0
push edx
push edi
push esi
mov ecx, ebp
call fcn.00404322
jmp 0x500b87
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
movzx eax, word [edi + 0x48]
mov ecx, 0x4000
cmp ax, cx
je 0x500201
mov edx, 0x4001
cmp ax, dx
je 0x500201
mov ecx, 0x4002
cmp ax, cx
jne 0x500248
push 0x94a
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
push 0x956
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea edx, [esp + 0x68]
push str._s__s
push edx
call fcn.0060a295
add esp, 0x10
push 7
push 0
push 0xffffb0
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
lea ecx, [esp + 0x44]
push ecx
push 0xffffb0
push 0x645292
mov ecx, esi
call fcn.0040b62c
push ebx
mov ecx, ebp
call fcn.00402e23
test eax, eax
jne 0x5002b4
push eax
push eax
push 0xffc800
push 0x104
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
mov ecx, esi
call fcn.0040b62c
movzx edx, word [edi + 0x44]
push 1
push 0xc8d7aa
push edx
jmp 0x500437
test edi, 0x8000
je 0x500459
push ebx
mov ecx, ebp
call fcn.004010fa
mov edi, eax
test edi, edi
je 0x500b87
lea eax, [edi + 2]
push eax
lea ecx, [esp + 0x64]
push 0x649d70
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
movzx eax, word [edi + 0x48]
mov ecx, 0x8000
cmp ax, cx
je 0x50033c
mov edx, 0x8001
cmp ax, dx
jne 0x500383
push 0x94b
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
push 0x956
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea eax, [esp + 0x68]
push str._s__s
push eax
call fcn.0060a295
add esp, 0x10
push 7
push 0
push 0xffffb0
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
cmp dword [esp + 0x10], 0x8001
jne 0x500413
movzx edx, word [edi + 0xe0]
push edx
push 0xee
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0060a295
mov ecx, dword [0x7b4d44]
mov dx, word [ecx + 0x43c]
add esp, 0xc
push 0
push 0
cmp dx, word [edi + 0xe0]
jae 0x500402
push 0xe61414
lea eax, [esp + 0x6c]
push eax
jmp 0x50040c
push 0xffffff
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
push 0
lea edx, [esp + 0x44]
push edx
push 0xffffb0
push 0x645292
mov ecx, esi
call fcn.0040b62c
movzx eax, word [edi + 0x44]
push 1
push 0xc8d7aa
push eax
push esi
mov ecx, ebp
call fcn.00404345
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
jmp 0x500b87
test edi, 0x100
je 0x50082e
push ebx
mov ecx, ebp
call fcn.004010fa
mov edi, eax
test edi, edi
je 0x500b87
lea ecx, [edi + 2]
push ecx
lea edx, [esp + 0x64]
push 0x649d70
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x104
add esp, 0xc
mov ecx, 0xffffff
cmp word [edi + 0x48], ax
jne 0x5004f8
cmp word [edi + 0x88], 0
je 0x5004f8
movzx eax, word [edi + 0x8a]
mov edx, dword [0x7b4d44]
test ax, ax
jne 0x5004c4
cmp word [edx + 0x43c], 0x32
ja 0x50051c
cmp eax, 1
jne 0x5004e0
movzx edx, word [edx + 0x43c]
cmp edx, 0x33
jb 0x50051c
cmp edx, 0x46
ja 0x50051c
mov edx, dword [0x7b4d44]
cmp eax, 2
jne 0x500521
movzx eax, word [edx + 0x43c]
cmp eax, 0x47
jb 0x50051c
cmp eax, 0x5a
jbe 0x500521
jmp 0x50051c
mov edx, dword [0x7b4d44]
movzx eax, word [edx + 0x43c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [edi + 0xdc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x500521
mov ecx, 0xe61414
push 2
push 0
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
fld dword [edi + 0xdc]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5005c9
fld dword [edi + 0xdc]
call fcn.0060a450
push eax
push 0xee
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
push 0x645292
push 0x956
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea edx, [esp + 0x70]
push edx
call fcn.0060a295
mov eax, dword [0x7b4d44]
movzx ecx, word [eax + 0x43c]
mov dword [esp + 0x24], ecx
add esp, 0x14
push 2
fild dword [esp + 0x14]
mov ecx, esi
fld dword [edi + 0xdc]
push 0
fcompp
fnstsw ax
test ah, 0x41
jne 0x5005ba
push 0xe61414
lea edx, [esp + 0x6c]
push edx
jmp 0x5005c4
push 0xffffff
lea eax, [esp + 0x6c]
push eax
call fcn.0040b62c
movzx eax, word [esi + 0xc]
mov ecx, 0x88
cmp ax, cx
je 0x5007c6
mov edx, 0x85
cmp ax, dx
je 0x5007c6
mov ecx, 0x12c
cmp word [edi + 0x48], cx
je 0x5007c6
mov edx, 0x83
cmp ax, dx
jne 0x500622
test byte [esi + 0x29e], 1
je 0x500622
push edi
push esi
mov ecx, ebp
call fcn.0040efb6
push edi
push esi
mov ecx, ebp
call fcn.00411897
jmp 0x500b87
push edi
push esi
mov ecx, ebp
call fcn.0040efb6
cmp word [edi + 0xe0], 0xb
jne 0x500614
push 0x2c
call fcn.0060a537
add esp, 4
test eax, eax
je 0x50064a
mov ecx, eax
call fcn.00409264
mov eax, dword [0x7a4230]
mov edx, dword [esi]
mov ebx, 1
mov ecx, esi
cmp dword [eax + 0x218], ebx
jne 0x500668
mov eax, dword [edx + 0x74]
call eax
push eax
jmp 0x500671
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
lea ecx, [ebp + 0x1ac]
call fcn.0040b67c
mov ebp, eax
test ebp, ebp
je 0x500b87
push 0
push 0
push 0xffffff
mov ecx, esi
push 0x645292
cmp dword [edi + 0x50], ebx
jne 0x500764
call fcn.0040b62c
push 0
lea edx, [esp + 0x44]
push edx
push 0xffffb0
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x2fe
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
mov ecx, esi
call fcn.0040b62c
push 0x7f
lea eax, [esp + 0x105]
push 0
push eax
mov byte [esp + 0x10c], 0
call fcn.00609d70
mov eax, dword [ebp + 0x28]
mov ecx, eax
shr ecx, 6
add esp, 0xc
and ecx, 0x3f
push ecx
mov edx, eax
shr edx, 0xc
and edx, 0x3f
push edx
mov ecx, eax
mov edx, eax
shr ecx, 0x12
and ecx, 0x3f
push ecx
shr edx, 0x18
and edx, 0xf
shr eax, 0x1c
push edx
add eax, 0xf
push eax
push 0x2ff
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0
push 0
push 0xffc800
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call fcn.0040b62c
jmp 0x500b87
call fcn.0040b62c
push 0
lea edx, [esp + 0x44]
push edx
push 0xffffb0
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x5a2
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffc800
push 0x5a4
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
mov ecx, esi
call fcn.0040b62c
jmp 0x500b87
test byte [esi + 0x2a4], 1
push ebx
mov ecx, ebp
je 0x5007f9
call fcn.00402e23
test eax, eax
je 0x500820
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x190]
push eax
push ecx
push edi
push esi
mov ecx, ebp
call fcn.00404322
jmp 0x50043f
call fcn.00402e23
test eax, eax
je 0x500820
mov edx, dword [esp + 0x198]
mov eax, dword [esp + 0x190]
push edx
push eax
push edi
push esi
mov ecx, ebp
call fcn.00404322
jmp 0x500b87
push edi
push esi
mov ecx, ebp
call fcn.0040efb6
jmp 0x50043f
mov eax, edi
and edi, 0x80
jne 0x50085f
cmp eax, 0x42
je 0x50085f
cmp eax, 0x41
je 0x50085f
cmp eax, 0x43
je 0x50085f
push edi
push 0x30b
push str.ItemManager.cpp
call fcn.004099cb
add esp, 0xc
jmp 0x500b87
push ebx
mov ecx, ebp
call fcn.004010fa
mov ebx, eax
test ebx, ebx
je 0x500b87
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x64]
push 0x649d70
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0x968
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
push 0x956
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea ecx, [esp + 0x68]
push str._s__s
push ecx
call fcn.0060a295
add esp, 0x10
push 7
push 0
push 0xffffb0
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
lea eax, [esp + 0x44]
push eax
push 0xffffb0
push 0x645292
mov ecx, esi
call fcn.0040b62c
test edi, edi
je 0x500a59
movzx eax, word [esi + 0xc]
mov ecx, 0x88
cmp ax, cx
je 0x500968
mov edx, 0x85
cmp ax, dx
je 0x500968
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
mov ecx, esi
call edx
mov edi, eax
jmp 0x50096e
mov edi, dword [esi + 0x2a0]
push ebx
push esi
mov ecx, ebp
call fcn.004043f4
mov eax, dword [esp + 0x190]
test eax, eax
je 0x500985
push eax
jmp 0x50098e
test edi, edi
je 0x500a59
push edi
mov ecx, 0x7ebd48
call fcn.0040c379
test eax, eax
je 0x500a59
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jns 0x5009b5
fadd dword [0x6449c4]
fmul qword [0x644960]
fdiv qword [0x648d98]
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x5009e9
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x5009e9
fstp dword [esp + 0x14]
jmp 0x5009eb
fstp st(0)
push 0x80
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.00609d70
fld dword [esp + 0x20]
fnstcw word [esp + 0x20]
add esp, 0xc
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov ecx, 0x7b73a8
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
push edx
push 0x5ec
fldcw word [esp + 0x1c]
call fcn.00410d20
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0x548fdf
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
cmp dword [esp + 0x10], 0x41
jne 0x500b31
movzx eax, word [esi + 0xc]
mov edx, 0x88
cmp ax, dx
je 0x500a89
mov ecx, 0x85
cmp ax, cx
je 0x500a89
mov edx, dword [esi]
mov eax, dword [edx + 0x74]
mov ecx, esi
call eax
mov edi, eax
jmp 0x500a8f
mov edi, dword [esi + 0x2a0]
push 0x80
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.00609d70
movzx edx, word [ebx + 0xc8]
add esp, 0xc
push edx
push 0x5ef
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0xffffff
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
test edi, edi
je 0x500b31
cmp edi, dword [0x7ebd5c]
jne 0x500b31
push 0x80
lea edx, [esp + 0x64]
push 0
push edx
call fcn.00609d70
add esp, 0xc
push 0x5f0
mov ecx, 0x7b73a8
call fcn.00410d20
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0
push 0
push 0xffffff
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b62c
push 0
push 0
push 0xffffff
push 0x645292
mov ecx, esi
call fcn.0040b62c
push 0
lea edx, [esp + 0x44]
push edx
push 0xffffb0
push 0x645292
mov ecx, esi
call fcn.0040b62c
movzx eax, word [ebx + 0x44]
push 1
push 0xc8d7aa
push eax
push esi
mov ecx, ebp
call fcn.00404345
jmp 0x500b87
push ebx
mov ecx, ebp
call fcn.004010fa
test eax, eax
je 0x500b87
push eax
push esi
call fcn.00404d54
lea ecx, [esp + 0x40]
call fcn.0041182e
lea ecx, [esp + 0xe0]
call fcn.0041182e
lea ecx, [esp + 0x20]
call fcn.0041182e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret 0x18