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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0x254]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x10], ebp
je 0x4a8be0
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebp + 0x254], edi
mov eax, dword [ebp + 0x134]
cmp eax, edi
mov dword [ebp + 0x26c], 1
je 0x4a9b71
cmp dword [eax + 0x58], edi
je 0x4a9b71
mov eax, dword [ebp + 0x270]
cmp eax, edi
je 0x4a9b71
cmp dword [eax + 0xa0], edi
je 0x4a9b71
cmp dword [ebp + 0x1c0], edi
jle 0x4a8e87
cmp dword [ebp + 0x1c4], edi
jle 0x4a8e87
mov esi, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebp + 0xe0]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xd8]
push 0x70
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
call fcn.00500104
add esp, 4
cmp eax, edi
je 0x4a8c92
call fcn.00482fd0
jmp 0x4a8c94
xor eax, eax
mov ecx, dword [ebp + 0x134]
mov dword [ebp + 0x254], eax
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx + 0x24]
cmp edx, edi
mov dword [esp + 0x34], edx
je 0x4a8e15
mov ecx, dword [ecx + 0xb4]
push esi
push 4
push ecx
mov ecx, dword [ebp + 0x1c4]
push 1
push 1
push eax
mov eax, dword [ebp + 0xd0]
push edx
mov edx, dword [ebp + 0x1c0]
call fcn.00495650
test eax, eax
jne 0x4a8e15
mov edx, dword [ebp + 0x1c4]
mov eax, dword [ebp + 0x1c0]
push edx
push eax
mov eax, dword [ebp + 0x254]
call fcn.004830f0
mov esi, dword [ebp + 0x254]
xor eax, eax
call fcn.00483200
push 1
push 0
xor edi, edi
lea ebx, [esp + 0x1c]
mov esi, ebp
call fcn.004883b0
test eax, eax
je 0x4a8dc4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4a8ddd
mov ecx, dword [ebp + 0x134]
mov edx, dword [ecx + 0x58]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4a8dc8
call fcn.004804c0
mov esi, eax
test esi, esi
je 0x4a8dc4
mov eax, dword [ebp + 0x1c0]
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esi]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x74], ecx
mov ecx, esi
xor ebx, ebx
call eax
mov edx, dword [esi]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
sub esp, 0x10
mov dword [esp + 0x50], eax
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x254]
push ebx
lea edx, [esp + 0x4c]
push edx
push eax
mov cl, 1
lea edx, [ebp + 0xd0]
mov eax, esi
call fcn.0048a2c0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4a8ddd
push esi
call fcn.00500319
add esp, 4
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x88]
mov edx, dword [ebp + 0x134]
mov eax, dword [edx + 0x58]
mov ebx, dword [ebp + 0x254]
push ecx
mov ecx, dword [eax + 0xb4]
mov eax, dword [ebp + 0xd0]
push 4
push ecx
mov ecx, dword [esp + 0x40]
push 1
push 1
add ecx, 0x1c
call fcn.00495690
xor edi, edi
mov edx, dword [ebp + 0x254]
push edx
mov ecx, ebp
call fcn.0048e210
mov ecx, dword [ebp + 0x4ec]
cmp ecx, edi
je 0x4a8e57
cmp dword [ebp + 0x4f0], edi
je 0x4a8e57
mov eax, dword [ecx]
mov edx, dword [ebp + 0x254]
mov eax, dword [eax + 0x20]
push edx
call eax
mov ecx, dword [ebp + 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x254]
mov edx, dword [edx + 0x20]
push eax
call edx
mov eax, dword [ebp + 0x270]
cmp eax, edi
je 0x4a8e87
mov eax, dword [eax + 0x340]
cmp eax, edi
je 0x4a8e87
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a8e70
sub eax, edx
sar eax, 1
je 0x4a8e87
push ebp
call fcn.00476380
mov ebp, dword [ebp + 0x134]
cmp ebp, edi
je 0x4a8e9e
mov esi, ebp
call fcn.004696b0
mov dword [esp + 0x34], eax
jmp 0x4a8ea2
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 0x270]
xor eax, eax
add ebp, 0x7c
xor esi, esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x14], esi
call fcn.00488e80
test eax, eax
jle 0x4a9a11
jmp 0x4a8ee4
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4a8ef7
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4a8efc
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + esi*4]
cmp dword [eax + 0x2c], 0
je 0x4a9a11
test ecx, ecx
je 0x4a8f1c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4a8f21
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov esi, dword [ecx + esi*4]
test esi, esi
je 0x4a99f3
movzx eax, byte [esi]
and eax, 1
xor edx, edx
test eax, eax
sete dl
mov eax, edx
test eax, eax
je 0x4a99f3
test ecx, ecx
mov esi, dword [esp + 0x14]
je 0x4a8f5a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4a8f5f
call fcn.00500ad0
mov eax, dword [ebp + 4]
mov eax, dword [eax + esi*4]
mov edi, dword [esp + 0x10]
mov ebx, dword [eax]
push edi
call fcn.00476960
mov ecx, dword [edi + 0x270]
cmp esi, dword [ecx + 0x8c]
mov dword [esp + 0x2c], eax
jne 0x4a8fa8
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x4a8fa8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x218]
mov dword [esp + 0x28], eax
jmp 0x4a8fb6
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x214]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x270]
cmp dword [ecx + 0x90], 0
mov ebx, dword [esp + 0x14]
je 0x4a90fa
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov edx, dword [eax]
test dword [edx], 0x200000
je 0x4a9072
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call fcn.0046ede0
fstp dword [esp + 0x34]
add esp, 4
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 8]
add eax, 8
mov dword [esp + 0x18], edx
call fcn.00472050
fld dword [esp + 0x30]
fmul qword [0x553df0]
mov ecx, eax
mov ecx, dword [ecx]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x1c], eax
add ecx, 0xc
fldcw word [esp + 0x1c]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
shl eax, 0x18
or eax, dword [esp + 0x28]
fldcw word [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [eax + 0x1fc]
push eax
call fcn.00476f20
jmp 0x4a90fa
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 8]
add eax, 8
mov edi, ebx
mov dword [esp + 0x18], edx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x10]
add eax, 0xc
mov dword [esp + 0x1c], ecx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
add eax, 0xc
mov dword [esp + 0x30], ecx
call fcn.00472050
mov dword [esp + 0x20], eax
call fcn.00472050
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ecx]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0x254]
push eax
call fcn.004972a0
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4a910d
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4a9112
call fcn.00500ad0
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
test byte [eax], 0x10
mov edi, ebx
mov esi, ebp
je 0x4a91fc
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x84], edx
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
call fcn.00476910
test eax, eax
mov dword [esp + 0x18], eax
je 0x4a9469
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x134]
call fcn.00469660
mov esi, ebp
mov dword [esp + 0x20], eax
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x28], ecx
call fcn.00472050
mov dword [esp + 0x1c], eax
call fcn.00472050
mov dword [esp + 0x2c], eax
call fcn.00472050
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [ecx + 0x218]
push edx
lea edx, [ecx + 0x214]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov edx, dword [edx]
push edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx]
add eax, 0x30
push eax
lea eax, [esp + 0x90]
push eax
mov eax, dword [ecx + 0x254]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
add edx, 0x34
call fcn.00477150
jmp 0x4a9469
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 4
jne 0x4a92cf
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x800
jne 0x4a92cf
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x4a92cf
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x4000
jne 0x4a92cf
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x4a9334
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x18], ecx
call fcn.00472050
mov dword [esp + 0x20], eax
call fcn.00472050
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x254]
push esi
push ecx
mov ecx, dword [edx]
add eax, 0x1c
lea edx, [esp + 0x84]
call fcn.004775f0
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x78]
add eax, 0x3c
mov dword [eax], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
jmp 0x4a9334
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x1c], edx
call fcn.00472050
mov dword [esp + 0x20], eax
call fcn.00472050
mov dword [esp + 0x18], eax
call fcn.00472050
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
add eax, 0x1c
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [edx + 0x34]
push eax
call fcn.00476c30
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x270]
cmp dword [edx + 0x30], 2
jne 0x4a9469
mov eax, dword [eax + 0x134]
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 0x3c]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4a9469
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov edx, dword [eax]
cmp dword [edx + 0x38], 0
je 0x4a9469
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
add eax, 0x3c
sub ecx, dword [eax]
je 0x4a9469
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x48]
add eax, 0x3c
sub edx, dword [eax + 4]
je 0x4a9469
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov edi, dword [esp + 0x20]
call fcn.00497160
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4a9469
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0xc0], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, ebx
mov esi, ebp
mov dword [esp + 0xc4], eax
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x40]
add eax, 0x3c
mov dword [esp + 0x20], ecx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
sub ecx, dword [eax + 0x3c]
add eax, 0x3c
mov dword [esp + 0x18], ecx
call fcn.00472050
mov dword [esp + 0x1c], eax
call fcn.00472050
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push 1
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [edx]
mov edx, dword [ecx + 0x40]
mov ecx, dword [eax + 0x3c]
push edx
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x254]
push ecx
push eax
mov eax, dword [esp + 0x48]
xor cl, cl
xor edx, edx
call fcn.0048a300
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4a947c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4a9481
call fcn.00500ad0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
test dword [edx], 0x2000
jne 0x4a95b8
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x40000
jne 0x4a95b8
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x4a95b8
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x4a95b8
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x400000
jne 0x4a94f2
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x100
je 0x4a99f3
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x134]
test eax, eax
je 0x4a99f3
mov eax, dword [eax + 0x58]
test eax, eax
je 0x4a99f3
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4a99f3
mov edi, ebx
mov esi, ebp
call fcn.00472050
fld dword [0x554060]
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov dword [esp + 0x74], ecx
fstp dword [esp]
mov ecx, dword [eax + 0x254]
mov dword [esp + 0x78], edx
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x2c], 0
call fcn.00482860
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x10]
add eax, 0x4c
mov dword [ecx + 0x36c], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x370], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x374], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x378], eax
mov dword [ecx + 0x39c], 1
jmp 0x4a99f3
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x4a9614
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x4a9614
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000
je 0x4a95f4
mov eax, dword [esp + 0x10]
add eax, 0x2ec
jmp 0x4a961d
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x40000
je 0x4a97e8
mov eax, dword [esp + 0x10]
add eax, 0x32c
jmp 0x4a961d
mov eax, dword [esp + 0x10]
add eax, 0x3ec
test eax, eax
mov dword [esp + 0x28], eax
je 0x4a97e8
mov edx, dword [eax + 0x10]
test edx, edx
mov dword [esp + 0x1c], edx
je 0x4a97e8
mov esi, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0xb0], esi
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], edx
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x4a974a
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x90]
add eax, 1
mov dword [esp + 0x58], eax
add eax, ecx
mov dword [esp + 0x60], eax
call fcn.00472050
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x20], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jge 0x4a9702
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x5c], eax
jmp 0x4a9710
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x5c]
add eax, ecx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x64], eax
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov ebx, dword [eax + 0x58]
sub ebx, dword [eax + 0x50]
add eax, 0x4c
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x54]
sub ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x18], ecx
call fcn.00472050
mov dword [esp + 0x20], eax
call fcn.00472050
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x1c]
push 0
push 0
lea edx, [esp + 0x90]
push edx
mov edx, dword [eax]
mov eax, dword [edx + 0x4c]
mov edx, dword [esp + 0x1c]
push ebx
push eax
mov eax, dword [edx + 0x254]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ecx + 0x50]
mov bl, 1
call fcn.0048a340
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x28]
add eax, 0x4c
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x30], 1
mov ebx, edi
mov edi, ebx
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x4a99f3
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x43c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4a99f3
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x4a98f3
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x40]
add eax, 1
mov dword [esp + 0x48], eax
add eax, ecx
mov dword [esp + 0x50], eax
call fcn.00472050
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x20], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jge 0x4a98ae
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x4c], eax
jmp 0x4a98bc
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add eax, ecx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x54], eax
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0xb4]
sub edx, dword [esp + 0xac]
mov esi, dword [eax + 0x50]
mov edi, dword [eax + 0x54]
mov ecx, dword [esp + 0xb0]
sub ecx, dword [esp + 0xa8]
mov ebx, dword [eax + 0x4c]
add eax, 0x4c
mov eax, dword [eax + 0xc]
lea esi, [esi + edx - 2]
lea ebx, [ebx + ecx + 2]
lea ecx, [edi + ecx + 2]
mov edi, dword [esp + 0x14]
lea edx, [eax + edx - 2]
mov dword [esp + 0x9c], esi
mov esi, ebp
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x18]
add eax, 0x4c
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 8], edx
push 0
push 0
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
mov edx, dword [ecx + 0x254]
push eax
push ebx
push edx
mov edx, dword [esp + 0x58]
mov bl, 1
mov eax, edi
call fcn.0048a340
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x40]
lea ecx, [edi + eax]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x42c], esi
add edx, esi
mov dword [eax + 0x430], edi
mov dword [eax + 0x434], edx
mov dword [eax + 0x438], ecx
mov dword [eax + 0x45c], 1
mov esi, dword [esp + 0x14]
add esi, 1
mov eax, ebp
mov dword [esp + 0x14], esi
call fcn.00488e80
cmp esi, eax
mov edi, dword [esp + 0x10]
jl 0x4a8ee0
xor eax, eax
cmp dword [edi + 0x2dc], eax
je 0x4a9a83
mov ecx, dword [edi + 0x270]
mov edx, dword [ecx + 0x1c]
mov esi, dword [edi + edx*4 + 0x2bc]
cmp esi, eax
je 0x4a9a83
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
push eax
push eax
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0x2b8]
sub ecx, dword [edi + 0x2b0]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [edi + 0x2ac]
push ecx
mov ecx, dword [edi + 0x254]
mov dword [esp + 0x84], edx
mov edx, dword [edi + 0x2b4]
sub edx, dword [edi + 0x2ac]
push eax
mov eax, dword [edi + 0x2b0]
push ecx
mov bl, 1
call fcn.0048a340
call fcn.0044d100
mov edx, dword [0x57668c]
cmp dword [edx + 0xd94], 0
mov esi, 1
mov dword [0x576688], esi
je 0x4a9ad9
mov eax, dword [edi + 0x3bc]
test eax, eax
je 0x4a9ad9
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov edx, 3
add eax, edx
add ecx, edx
mov dword [edi + 0x3ac], edx
mov dword [edi + 0x3b0], edx
mov dword [edi + 0x3b4], eax
mov dword [edi + 0x3b8], ecx
mov dword [edi + 0x3dc], esi
mov eax, dword [edi + 0x270]
mov ecx, dword [eax + 0x3e8]
cmp dword [ecx - 0xc], 0
je 0x4a9b3e
cmp dword [eax + 0x3f8], 0
je 0x4a9b3e
lea edx, [edi + 0x494]
test edx, edx
je 0x4a9b3e
mov ebx, dword [eax + 0x3e8]
xor ecx, ecx
cmp dword [ebx - 0xc], ecx
je 0x4a9b15
cmp dword [eax + 0x3ec], ecx
je 0x4a9b15
mov ecx, esi
movzx ebx, byte [eax + 0x3f4]
shl ebx, 0x18
or ebx, dword [edx + 0x18]
push ebx
push ecx
lea ecx, [eax + 0x3fc]
push ecx
mov ecx, dword [edi + 0x254]
push ecx
mov ecx, dword [eax + 0x3e8]
push edi
call fcn.00476f20
mov eax, dword [edi + 0x254]
test eax, eax
je 0x4a9b5e
cmp dword [edi + 0x268], 0
jne 0x4a9b5e
mov edx, dword [0x57aa24]
push edx
push eax
call fcn.00489f20
mov ecx, edi
call fcn.00475d80
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4