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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xac]
cmp dword [esi + 0x50], 0
push edi
je 0x49cd53
mov ebp, dword [esi + 0x4c]
mov edi, dword [esi + 0x48]
add ebp, 0x7c
add edi, 0x20
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x2c], ebx
call fcn.00488e80
test eax, eax
jbe 0x49cd53
jmp 0x49c4f6
mov edi, dword [esp + 0x64]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x49c509
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c50e
call fcn.00500ad0
mov ecx, dword [ebp + 4]
cmp dword [ecx + ebx*4], 0
je 0x49cd3d
test ecx, ecx
je 0x49c52b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c530
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
cmp dword [eax + 0x2c], 0
je 0x49cd3d
test ecx, ecx
je 0x49c550
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c555
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x49cd3d
test byte [eax], 1
je 0x49cd3d
test ecx, ecx
je 0x49c57c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c581
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax]
mov ecx, esi
call fcn.00482630
mov edx, dword [edi + 0x40]
add edi, 0x40
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x90], 0
mov dword [esp + 0x28], edx
je 0x49c68c
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x49c5c1
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c5c6
call fcn.00500ad0
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
je 0x49c5e3
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c5e8
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x49c60b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c610
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0xc]
add eax, 0xc
test ecx, ecx
je 0x49c62f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c634
call fcn.00500ad0
mov edi, dword [ebp + 4]
test edi, edi
je 0x49c647
mov eax, dword [ebp + 8]
sub eax, edi
sar eax, 2
cmp ebx, eax
jb 0x49c64c
call fcn.00500ad0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [edi + ebx*4]
push eax
mov eax, dword [edx + 0x10]
push ecx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
mov edi, dword [edx + 0xc]
push esi
push eax
mov eax, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xcc]
call fcn.004822e0
mov esi, dword [esp + 0xb0]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x49c69f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c6a4
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov ecx, esi
call fcn.004825e0
test eax, eax
mov dword [esp + 0x14], eax
je 0x49c7ae
mov esi, dword [esi + 0x50]
call fcn.00469660
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x49c6dc
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c6e1
call fcn.00500ad0
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edx, [ecx + ebx*4]
mov dword [esp + 0x30], edx
je 0x49c6fb
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c700
call fcn.00500ad0
mov ecx, dword [ebp + 4]
test ecx, ecx
lea eax, [ecx + ebx*4]
mov dword [esp + 0x28], eax
je 0x49c71a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c71f
call fcn.00500ad0
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edi, [ecx + ebx*4]
je 0x49c735
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c73a
call fcn.00500ad0
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edx, dword [ecx + ebx*4]
mov esi, dword [edx + 4]
je 0x49c753
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c758
call fcn.00500ad0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x44]
push ecx
add eax, 0x40
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [ecx]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 4]
add ecx, 0x30
push ecx
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0xcc]
add ecx, 0x1c
push ecx
mov ecx, dword [esp + 0xcc]
push eax
push ecx
add edx, 0x34
mov ecx, esi
call fcn.00481ad0
mov esi, dword [esp + 0xb0]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x49c7c1
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c7c6
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
test dword [edx], 0x100
je 0x49c8cf
mov eax, dword [esi + 0x50]
test eax, eax
je 0x49cd3d
mov eax, dword [eax + 0x58]
test eax, eax
je 0x49cd3d
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x14], eax
je 0x49cd3d
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0x98], edx
push 0
lea edx, [esp + 0x90]
push edx
call dword [0x5313ec]
mov edx, dword [esp + 0xb4]
lea eax, [esp + 0x88]
call fcn.00483610
fld dword [0x554060]
push ecx
mov ecx, dword [esp + 0x18]
fstp dword [esp]
push edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x1c], 0
call fcn.00482860
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0xb0]
add eax, 0x4c
mov dword [ecx + 0xd0], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0xd4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0xd8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0x100], 1
mov esi, ecx
jmp 0x49cd3d
test ecx, ecx
je 0x49c8df
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c8e4
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
test dword [edx], 0x1000000
jne 0x49c919
test ecx, ecx
je 0x49c902
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49c907
call fcn.00500ad0
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test dword [ecx], 0x2000000
je 0x49cd3d
mov eax, dword [esi + 0x160]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x49cb01
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x49ca0d
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x70]
add eax, 1
mov dword [esp + 0x44], eax
add eax, ecx
mov dword [esp + 0x4c], eax
call fcn.00472050
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x10], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jge 0x49c9c8
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], eax
jmp 0x49c9d6
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x48]
add ecx, eax
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x50], ecx
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x70]
sub ecx, 2
sub eax, 2
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa0], edx
mov edx, dword [ecx + 0x5c]
push edx
mov dword [esp + 0xa8], eax
push 0
lea eax, [esp + 0x3c]
push eax
call dword [0x5313ec]
mov esi, dword [esp + 0xb4]
lea eax, [esp + 0x34]
mov edx, esi
call fcn.00483610
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push 0
push 0
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x40]
sub edx, eax
push edx
mov edx, dword [esp + 0x4c]
push ecx
push esi
mov esi, dword [esp + 0x2c]
sub edx, ecx
mov bl, 1
call fcn.0048a340
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov dword [eax + 0x150], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x154], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x158], ecx
mov dword [eax + 0x15c], edx
mov dword [eax + 0x180], 1
mov esi, eax
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x49cb14
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x49cb19
call fcn.00500ad0
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test dword [ecx], 0x2000000
je 0x49cd3d
mov eax, dword [esi + 0x1a0]
test eax, eax
mov dword [esp + 0x14], eax
je 0x49cd3d
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x49cc2b
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x80]
add eax, 1
mov dword [esp + 0x54], eax
add eax, ecx
mov dword [esp + 0x5c], eax
call fcn.00472050
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x10], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jge 0x49cbe3
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x58], eax
jmp 0x49cbf1
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x58]
add ecx, eax
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x60], ecx
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
lea ecx, [ecx + eax + 2]
lea edx, [edx + eax + 2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x4c], ecx
mov edx, dword [esp + 0x1c]
add eax, 0x4c
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x5c]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
call dword [0x5313ec]
mov edx, dword [esp + 0xb4]
lea eax, [esp + 0x18]
call fcn.00483610
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x30]
push edx
mov bl, 1
mov edx, edi
call fcn.0048a340
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x2c]
add edx, ecx
mov dword [eax + 0x190], esi
add edi, esi
mov dword [eax + 0x194], ecx
mov dword [eax + 0x198], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [eax + 0x19c], edx
mov dword [eax + 0x1c0], 1
mov esi, eax
add ebx, 1
mov eax, ebp
mov dword [esp + 0x2c], ebx
call fcn.00488e80
cmp ebx, eax
jb 0x49c4f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 8