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

Disassembly:
sub esp, 0x178
mov eax, dword [0x6a1068]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x184]
mov edx, dword [esp + 0x18c]
push ebx
push ebp
mov ebp, dword [esp + 0x188]
push esi
mov esi, dword [esp + 0x188]
movzx ebx, word [esi + 0x21a]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x198]
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
call fcn.00515080
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
call fcn.0042cf30
push 0
lea eax, [esp + 0x28]
push eax
push 0xd4
mov ecx, 0x6b06f0
call fcn.00431c80
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x172], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x176], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x17a], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x17e], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x18a], ecx
lea ecx, [esp + 0x64]
mov dword [esi + 0x182], edx
mov dword [esi + 0x186], eax
call fcn.0042cf30
push 0
lea edx, [esp + 0x68]
push edx
push 0x3f
mov ecx, 0x6b06f0
call fcn.00431c80
push 0x1e1e1e
lea eax, [esp + 0x68]
push eax
push 0xffffffffffffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e240
lea ecx, [esp + 0x44]
mov dword [esi + 0x16a], 1
call fcn.0042cf30
push 0
lea ecx, [esp + 0x48]
push ecx
push 0xd5
mov ecx, 0x6b06f0
call fcn.00431c80
lea eax, [esi + 0x18e]
test eax, eax
je 0x4aa331
push eax
mov ecx, esi
call fcn.0043e200
mov eax, dword [esp + 0x1c]
test eax, 0x800
je 0x4aa365
push ebx
mov ecx, edi
call fcn.0049f5d0
test eax, eax
je 0x4aaee3
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edx
push ecx
push ebp
push eax
push esi
mov ecx, edi
call fcn.004a6c30
jmp 0x4aaee3
test eax, 0x400
je 0x4aa388
push ebx
mov ecx, edi
call fcn.0049f5d0
test eax, eax
je 0x4aaee3
push eax
push esi
call fcn.004a2f00
jmp 0x4aaee3
test eax, 0x200
je 0x4aa3ab
push ebx
mov ecx, edi
call fcn.0049f5d0
test eax, eax
je 0x4aaee3
push eax
push esi
call fcn.004a2680
jmp 0x4aaee3
test eax, 0x3000
jne 0x4aaed0
test eax, 0x4000
je 0x4aa5e1
push ebx
mov ecx, edi
call fcn.0049f5d0
mov ebp, eax
test ebp, ebp
je 0x4aaee3
push ebx
call fcn.0049f710
lea edx, [ebp + 2]
push edx
test eax, eax
push 0x586148
lea eax, [esp + 0x8c]
push eax
je 0x4aa4a2
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
movzx eax, word [ebp + 0x48]
mov edx, 0x4010
cmp ax, dx
je 0x4aa440
mov ecx, 0x401a
cmp ax, cx
jne 0x4aa48d
push 0x94a
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x956
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea edx, [esp + 0x8c]
push str._s__s
push edx
call fcn.00565b90
add esp, 0x10
push 7
push 0
push 0xffffb0
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call fcn.0043e1e0
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebp
push esi
mov ecx, edi
call fcn.004a39d0
jmp 0x4aaee3
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
movzx eax, word [ebp + 0x48]
mov edx, 0x4000
cmp ax, dx
je 0x4aa4fa
mov ecx, 0x4001
cmp ax, cx
je 0x4aa4fa
mov edx, 0x4002
cmp ax, dx
jne 0x4aa547
push 0x94a
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x956
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea eax, [esp + 0x8c]
push str._s__s
push eax
call fcn.00565b90
add esp, 0x10
push 7
push 0
push 0xffffb0
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
lea edx, [esp + 0x48]
push edx
push 0xffffb0
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push ebx
mov ecx, edi
call fcn.0049f710
test eax, eax
jne 0x4aa5b3
push eax
push eax
push 0xffc800
push 0x104
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
mov ecx, esi
call fcn.0043e1e0
movzx eax, word [ebp + 0x44]
push 1
push 0xc8d7aa
push eax
push esi
mov ecx, edi
call fcn.0049f050
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
jmp 0x4aaee3
test eax, 0x8000
je 0x4aa789
push ebx
mov ecx, edi
call fcn.0049f5d0
mov ebp, eax
test ebp, ebp
je 0x4aaee3
lea ecx, [ebp + 2]
push ecx
lea edx, [esp + 0x88]
push 0x586148
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
movzx eax, word [ebp + 0x48]
mov ecx, 0x8000
cmp ax, cx
je 0x4aa65d
mov edx, 0x8001
cmp ax, dx
jne 0x4aa6aa
push 0x94b
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x956
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea eax, [esp + 0x8c]
push str._s__s
push eax
call fcn.00565b90
add esp, 0x10
push 7
push 0
push 0xffffb0
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
cmp dword [esp + 0x1c], 0x8001
jne 0x4aa743
movzx edx, word [ebp + 0xd6]
push edx
push 0xee
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00565b90
mov ecx, dword [0x6b1164]
mov dx, word [ecx + 0x42e]
add esp, 0xc
push 0
push 0
cmp dx, word [ebp + 0xd6]
jae 0x4aa72f
push 0xe61414
lea eax, [esp + 0x90]
push eax
jmp 0x4aa73c
push 0xffffff
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
push 0
lea edx, [esp + 0x48]
push edx
push 0xffffb0
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
movzx eax, word [ebp + 0x44]
push 1
push 0xc8d7aa
push eax
push esi
mov ecx, edi
call fcn.0049f050
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
jmp 0x4aaee3
test eax, 0x100
je 0x4aab66
push ebx
mov ecx, edi
call fcn.0049f5d0
mov ebp, eax
test ebp, ebp
je 0x4aaee3
lea ecx, [ebp + 2]
push ecx
lea edx, [esp + 0x88]
push 0x586148
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x104
add esp, 0xc
mov ecx, 0xffffff
cmp word [ebp + 0x48], ax
jne 0x4aa82a
cmp word [ebp + 0x82], 0
je 0x4aa82a
movzx eax, word [ebp + 0x84]
mov edx, dword [0x6b1164]
test ax, ax
jne 0x4aa7f6
cmp word [edx + 0x42e], 0x32
ja 0x4aa84e
cmp eax, 1
jne 0x4aa812
movzx edx, word [edx + 0x42e]
cmp edx, 0x33
jb 0x4aa84e
cmp edx, 0x46
ja 0x4aa84e
mov edx, dword [0x6b1164]
cmp eax, 2
jne 0x4aa853
movzx eax, word [edx + 0x42e]
cmp eax, 0x47
jb 0x4aa84e
cmp eax, 0x5a
jbe 0x4aa853
jmp 0x4aa84e
mov edx, dword [0x6b1164]
movzx eax, word [edx + 0x42e]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fld dword [ebp + 0xd2]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4aa853
mov ecx, 0xe61414
push 2
push 0
push ecx
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
fld dword [ebp + 0xd2]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4aa907
fld dword [ebp + 0xd2]
call fcn.00565c50
push eax
push 0xee
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x583d4e
push 0x956
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea edx, [esp + 0x94]
push edx
call fcn.00565b90
mov eax, dword [0x6b1164]
movzx ecx, word [eax + 0x42e]
mov dword [esp + 0x28], ecx
add esp, 0x14
push 2
fild dword [esp + 0x18]
mov ecx, esi
fld dword [ebp + 0xd2]
push 0
fcompp
fnstsw ax
test ah, 0x41
jne 0x4aa8f5
push 0xe61414
lea edx, [esp + 0x90]
push edx
jmp 0x4aa902
push 0xffffff
lea eax, [esp + 0x90]
push eax
call fcn.0043e1e0
movzx eax, word [esi + 0xc]
mov ecx, 0x88
cmp ax, cx
je 0x4aab04
mov edx, 0x85
cmp ax, dx
je 0x4aab04
mov ecx, 0x12c
cmp word [ebp + 0x48], cx
je 0x4aab04
mov edx, 0x83
cmp ax, dx
jne 0x4aa960
test byte [esi + 0x298], 1
je 0x4aa960
push ebp
push esi
mov ecx, edi
call fcn.0049fc40
push ebp
push esi
mov ecx, edi
call fcn.0049e670
jmp 0x4aaee3
push ebp
push esi
mov ecx, edi
call fcn.0049fc40
cmp word [ebp + 0xd6], 0xb
jne 0x4aa952
push 0x2c
call fcn.00565d11
add esp, 4
test eax, eax
je 0x4aa988
mov ecx, eax
call fcn.0049d0c0
mov eax, dword [0x6a32e8]
mov edx, dword [esi]
mov ebx, 1
mov ecx, esi
cmp dword [eax + 0x212], ebx
jne 0x4aa9a6
mov eax, dword [edx + 0x74]
call eax
push eax
jmp 0x4aa9af
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
lea ecx, [edi + 0x1ac]
call fcn.00451c60
mov edi, eax
test edi, edi
je 0x4aaee3
push 0
push 0
push 0xffffff
mov ecx, esi
push 0x583d4e
cmp dword [ebp + 0x4e], ebx
jne 0x4aaaa2
call fcn.0043e1e0
push 0
lea edx, [esp + 0x48]
push edx
push 0xffffb0
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x2fe
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
mov ecx, esi
call fcn.0043e1e0
push 0x7f
lea eax, [esp + 0x109]
push 0
push eax
mov byte [esp + 0x110], 0
call fcn.00565680
mov eax, dword [edi + 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, 0x6b2fd8
call fcn.004c6410
push eax
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0
push 0
push 0xffc800
lea ecx, [esp + 0x110]
push ecx
mov ecx, esi
call fcn.0043e1e0
jmp 0x4aaee3
call fcn.0043e1e0
push 0
lea edx, [esp + 0x48]
push edx
push 0xffffb0
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x5a2
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffc800
push 0x5a4
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
mov ecx, esi
call fcn.0043e1e0
jmp 0x4aaee3
test byte [esi + 0x29e], 1
push ebx
mov ecx, edi
je 0x4aab34
call fcn.0049f710
test eax, eax
je 0x4aab58
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
push esi
mov ecx, edi
call fcn.004a39d0
jmp 0x4aa76f
call fcn.0049f710
test eax, eax
je 0x4aab58
mov edx, dword [esp + 0x1a0]
mov eax, dword [esp + 0x10]
push edx
push eax
push ebp
push esi
mov ecx, edi
call fcn.004a39d0
jmp 0x4aaee3
push ebp
push esi
mov ecx, edi
call fcn.0049fc40
jmp 0x4aa76f
mov ebp, eax
and ebp, 0x80
jne 0x4aab97
cmp eax, 0x42
je 0x4aab97
cmp eax, 0x41
je 0x4aab97
cmp eax, 0x43
je 0x4aab97
push ebp
push 0x30b
push str.ItemManager.cpp
call fcn.00516310
add esp, 0xc
jmp 0x4aaee3
push ebx
mov ecx, edi
call fcn.0049f5d0
mov ebx, eax
test ebx, ebx
je 0x4aaee3
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x88]
push 0x586148
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push 0xffffff
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0x968
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x956
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea ecx, [esp + 0x8c]
push str._s__s
push ecx
call fcn.00565b90
add esp, 0x10
push 7
push 0
push 0xffffb0
lea edx, [esp + 0x90]
push edx
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
lea eax, [esp + 0x48]
push eax
push 0xffffb0
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
test ebp, ebp
je 0x4aada3
movzx eax, word [esi + 0xc]
mov ecx, 0x88
cmp ax, cx
je 0x4aacac
mov edx, 0x85
cmp ax, dx
je 0x4aacac
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
mov ecx, esi
call edx
mov ebp, eax
jmp 0x4aacb2
mov ebp, dword [esi + 0x29a]
push ebx
push esi
mov ecx, edi
call fcn.0049d640
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aacc6
push eax
jmp 0x4aaccf
test ebp, ebp
je 0x4aada3
push ebp
mov ecx, 0x6de700
call fcn.00557830
test eax, eax
je 0x4aada3
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jns 0x4aacf6
fadd dword [0x583660]
fmul qword [0x583610]
fdiv qword [0x585430]
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4aad2a
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4aad2a
fstp dword [esp + 0x10]
jmp 0x4aad2c
fstp st(0)
push 0x80
lea ecx, [esp + 0x88]
push 0
push ecx
call fcn.00565680
fld dword [esp + 0x1c]
fnstcw word [esp + 0x1c]
add esp, 0xc
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x14], eax
mov ecx, 0x6b2fd8
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov edx, dword [esp + 0x14]
push edx
push 0x5ec
fldcw word [esp + 0x18]
call fcn.004c6410
push eax
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0x548fdf
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
cmp dword [esp + 0x1c], 0x41
jne 0x4aae8d
movzx eax, word [esi + 0xc]
mov edx, 0x88
cmp ax, dx
je 0x4aadd3
mov ecx, 0x85
cmp ax, cx
je 0x4aadd3
mov edx, dword [esi]
mov eax, dword [edx + 0x74]
mov ecx, esi
call eax
mov ebp, eax
jmp 0x4aadd9
mov ebp, dword [esi + 0x29a]
push 0x80
lea ecx, [esp + 0x88]
push 0
push ecx
call fcn.00565680
movzx edx, word [ebx + 0xc0]
add esp, 0xc
push edx
push 0x5ef
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0xffffff
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
test ebp, ebp
je 0x4aae8d
cmp ebp, dword [0x6de714]
jne 0x4aae8d
push 0x80
lea edx, [esp + 0x88]
push 0
push edx
call fcn.00565680
add esp, 0xc
push 0x5f0
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0
push 0
push 0xffffff
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0043e1e0
push 0
push 0
push 0xffffff
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
push 0
lea edx, [esp + 0x48]
push edx
push 0xffffb0
push 0x583d4e
mov ecx, esi
call fcn.0043e1e0
movzx eax, word [ebx + 0x44]
push 1
push 0xc8d7aa
push eax
push esi
mov ecx, edi
call fcn.0049f050
jmp 0x4aaee3
push ebx
mov ecx, edi
call fcn.0049f5d0
test eax, eax
je 0x4aaee3
push eax
push esi
call fcn.004a22c0
lea ecx, [esp + 0x44]
call fcn.0042cf40
lea ecx, [esp + 0x64]
call fcn.0042cf40
lea ecx, [esp + 0x24]
call fcn.0042cf40
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00565c32
add esp, 0x178
ret 0x18