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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
add dword [0x57aa30], esi
cmp dword [edi + 0x500], 0
jne 0x4b5443
cmp dword [edi + 0x504], 0
je 0x4b67b3
mov ecx, dword [edi + 0x254]
test ecx, ecx
je 0x4b545e
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov dword [edi + 0x254], 0
mov eax, dword [edi + 0x134]
test eax, eax
mov dword [edi + 0x26c], esi
je 0x4b67c1
cmp dword [eax + 0x58], 0
je 0x4b67c1
mov eax, dword [edi + 0x270]
test eax, eax
je 0x4b67c1
cmp dword [eax + 0x78], 0
je 0x4b67c1
add eax, 0x34
call fcn.00488e80
test eax, eax
jbe 0x4b678c
mov eax, dword [edi]
mov edx, dword [eax + 0x150]
xor esi, esi
push esi
mov ecx, edi
call edx
mov ebx, dword [edi + 0xd4]
mov ecx, dword [edi + 0xdc]
mov edx, dword [edi + 0xe0]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xd8]
push 0x70
mov dword [esp + 0x5c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call fcn.00500104
add esp, 4
cmp eax, esi
je 0x4b5506
call fcn.00482fd0
jmp 0x4b5508
xor eax, eax
mov ecx, dword [edi + 0x134]
mov dword [edi + 0x254], eax
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx + 0x24]
cmp edx, esi
mov dword [esp + 0x24], edx
je 0x4b5699
mov ecx, dword [ecx + 0xb4]
push ebx
push 0
push ecx
mov ecx, dword [edi + 0x1c4]
push 1
push 1
push eax
mov eax, dword [edi + 0xd0]
lea esi, [edi + 0xd0]
push edx
mov edx, dword [edi + 0x1c0]
mov dword [esp + 0x4c], esi
call fcn.00495610
test eax, eax
jne 0x4b5699
mov edx, dword [edi + 0x1c4]
mov eax, dword [edi + 0x1c0]
push edx
push eax
mov eax, dword [edi + 0x254]
call fcn.004830f0
mov esi, dword [edi + 0x254]
xor eax, eax
call fcn.00483200
mov esi, dword [ebp + 8]
push 1
push 0
xor edi, edi
lea ebx, [esp + 0x4c]
call fcn.004883b0
test eax, eax
je 0x4b5648
mov esi, dword [esp + 0x44]
test esi, esi
mov edi, dword [ebp + 8]
je 0x4b5663
mov ecx, dword [edi + 0x134]
mov edx, dword [ecx + 0x58]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4b564e
call fcn.004804c0
mov esi, eax
test esi, esi
je 0x4b564a
mov eax, dword [edi + 0x1c0]
mov ecx, dword [edi + 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 + 0x18], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x70]
sub esp, 0x10
mov dword [esp + 0x70], eax
mov eax, esp
mov dword [esp + 0x74], ecx
mov dword [eax], ebx
xor ecx, ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x254]
push ebx
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov cl, 1
mov eax, esi
call fcn.0048a2c0
jmp 0x4b564a
mov edi, esi
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4b5663
push esi
call fcn.00500319
add esp, 4
mov dword [esp + 0x44], 0
mov edx, dword [edi + 0x134]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + 0x58]
mov edx, dword [esp + 0x30]
mov ebx, dword [edi + 0x254]
push ecx
mov ecx, dword [eax + 0xb4]
mov eax, dword [edx]
push 0
push ecx
mov ecx, dword [esp + 0x30]
push 1
push 1
add ecx, 4
call fcn.00495690
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x4f0]
test ecx, ecx
je 0x4b56b4
mov edx, dword [edi + 0x270]
mov eax, dword [ecx]
mov edx, dword [edx + 0x18]
mov eax, dword [eax + 0x50]
push edx
call eax
mov ecx, dword [edi + 0x254]
push ecx
mov ecx, edi
call fcn.0048e210
mov ebx, dword [edi + 0x254]
test ebx, ebx
je 0x4b572c
mov eax, dword [edi + 0x270]
test eax, eax
je 0x4b572c
cmp dword [eax + 0x6c], 0
je 0x4b572c
mov eax, dword [edi + 0x134]
test eax, eax
je 0x4b572c
mov esi, dword [eax + 0x54]
test esi, esi
je 0x4b572c
mov eax, esi
call fcn.00499a00
test eax, eax
jne 0x4b572c
mov eax, dword [edi + 0x574]
mov ecx, dword [edi + 0x570]
push ebx
push esi
call fcn.0047f9a0
test eax, eax
je 0x4b572c
mov edx, dword [edi + 0x254]
mov ebx, dword [edi + 0x574]
mov edi, dword [edi + 0x570]
push edx
mov esi, eax
call fcn.004896a0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x270]
cmp dword [eax + 0x18], 0
je 0x4b57f6
cmp dword [edi + 0x4f0], 0
jne 0x4b57f6
mov eax, dword [eax + 0x14]
mov esi, dword [edi + eax*4 + 0x598]
test esi, esi
je 0x4b57f6
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
xor eax, eax
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov edx, dword [edi + 0x594]
sub edx, dword [edi + 0x58c]
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edi + 0x588]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [edi + 0x254]
push edx
mov edx, dword [edi + 0x590]
sub edx, dword [edi + 0x588]
push eax
mov eax, dword [edi + 0x58c]
push ecx
mov bl, 1
mov dword [esp + 0x84], 0x1b
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], 0xc
mov dword [esp + 0x90], 0x14
call fcn.0048a340
call fcn.0044d100
mov edx, dword [0x57668c]
cmp dword [edx + 0xd94], 0
mov dword [0x576688], 1
je 0x4b58dc
mov esi, dword [edi + 0x3bc]
test esi, esi
je 0x4b58dc
mov edx, dword [edi + 0x110]
mov ecx, dword [esi + 0x10]
xor eax, eax
lea ebx, [edx - 8]
mov dword [esp + 0x34], ebx
mov ebx, dword [edi + 0x114]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xc]
add ebx, 0xfffffffe
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], ebx
mov ebx, dword [edi + 0x114]
lea eax, [edx + eax - 8]
mov edx, dword [edi + 0x254]
mov dword [esp + 0x3c], eax
lea ebx, [ebx + ecx - 2]
lea eax, [esp + 0x34]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], ebx
call fcn.00483610
sub ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
push ebx
push eax
sub edx, eax
mov eax, dword [edi + 0x254]
push eax
mov eax, dword [esp + 0x50]
mov bl, 1
call fcn.0048a340
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add eax, edx
add esi, ecx
mov dword [edi + 0x3ac], ecx
mov dword [edi + 0x3b0], edx
mov dword [edi + 0x3b4], esi
mov dword [edi + 0x3b8], eax
mov dword [edi + 0x3dc], 1
mov eax, dword [edi + 0x270]
test eax, eax
je 0x4b590a
mov eax, dword [eax + 0x340]
test eax, eax
je 0x4b590a
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b58f3
sub eax, edx
sar eax, 1
je 0x4b590a
push edi
call fcn.00476380
mov ecx, dword [edi + 0x270]
cmp dword [ecx + 0x3b0], 0
je 0x4b5957
lea esi, [edi + 0x244]
mov eax, esi
call fcn.00488e80
test eax, eax
jbe 0x4b5957
mov edx, dword [edi + 0x568]
mov eax, dword [edi + 0x55c]
mov ecx, dword [edi + 0x560]
push 1
push 0
push 0
push 0
push edx
mov edx, dword [edi + 0x254]
push eax
push ecx
push eax
push edx
call fcn.004893f0
add esp, 0x24
mov eax, dword [edi + 0x270]
mov esi, dword [edi + 0x134]
lea ecx, [eax + 0x34]
add eax, 0x7c
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
je 0x4b5982
call fcn.004696b0
mov dword [esp + 0x30], eax
jmp 0x4b5986
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x10]
call fcn.00488e80
test eax, eax
jle 0x4b5af1
jmp 0x4b59a0
mov esi, dword [esp + 0x10]
mov edi, ebx
call fcn.00472050
mov edx, dword [eax]
cmp dword [edx + 0x18], 0
je 0x4b5aee
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 2
jne 0x4b59e1
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 4
jne 0x4b59e1
mov edi, dword [ebp + 8]
add edi, 0x1d4
call fcn.0046c280
jmp 0x4b59ef
mov edi, dword [ebp + 8]
add edi, 0x1d4
call fcn.0046c230
mov esi, dword [esp + 0x10]
mov edi, ebx
mov dword [esp + 0x24], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 2
je 0x4b5a15
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1f0]
mov dword [esp + 0x20], ecx
jmp 0x4b5a22
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1ec]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 4
je 0x4b5a42
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x218]
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x10]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 8
je 0x4b5a62
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1ec]
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x10]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 0x10
je 0x4b5a82
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1f0]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], 0
je 0x4b5ada
mov esi, dword [esp + 0x10]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
call fcn.00472050
mov dword [esp + 0x18], eax
call fcn.00472050
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
movzx edx, byte [ecx + 0x1c]
mov ecx, dword [esp + 0x24]
shl edx, 0x18
or edx, dword [esp + 0x20]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [esp + 0x28]
add edx, 4
push eax
call fcn.00476a10
mov eax, dword [esp + 0x10]
add ebx, 1
call fcn.00488e80
cmp ebx, eax
jl 0x4b59a0
mov edi, dword [ebp + 8]
lea edx, [edi + 0x46c]
test edx, edx
je 0x4b5bc5
lea esi, [edi + 0x494]
test esi, esi
je 0x4b5bc5
mov eax, dword [edi + 0x270]
mov ecx, dword [eax + 0x3c4]
cmp dword [ecx - 0xc], 0
je 0x4b5b6b
cmp dword [eax + 0x3d4], 0
je 0x4b5b6b
mov ebx, dword [eax + 0x3c4]
xor ecx, ecx
cmp dword [ebx - 0xc], ecx
je 0x4b5b42
cmp dword [eax + 0x3c8], ecx
je 0x4b5b42
mov ecx, 1
movzx ebx, byte [eax + 0x3d0]
shl ebx, 0x18
or ebx, dword [edx + 0x18]
push ebx
push ecx
lea ecx, [eax + 0x3d8]
push ecx
mov ecx, dword [edi + 0x254]
push ecx
mov ecx, dword [eax + 0x3c4]
push edi
call fcn.00476f20
mov eax, dword [edi + 0x270]
mov edx, dword [eax + 0x3e8]
cmp dword [edx - 0xc], 0
je 0x4b5bc5
cmp dword [eax + 0x3f8], 0
je 0x4b5bc5
xor ecx, ecx
cmp dword [edx - 0xc], ecx
je 0x4b5b9a
cmp dword [eax + 0x3ec], ecx
je 0x4b5b9a
mov ecx, 1
movzx edx, byte [eax + 0x3f4]
shl edx, 0x18
or edx, dword [esi + 0x18]
push edx
mov edx, dword [edi + 0x254]
push ecx
lea ecx, [eax + 0x3fc]
push ecx
mov ecx, dword [eax + 0x3e8]
push edx
push edi
mov edx, esi
call fcn.00476f20
call fcn.004768c0
test eax, eax
mov esi, dword [ebp + 8]
je 0x4b5c22
mov ecx, dword [esi + 0x270]
mov edx, dword [ecx + 0x48]
cmp dword [edx - 0xc], 0
je 0x4b5c22
lea edi, [esi + 0x4bc]
test edi, edi
je 0x4b5bf2
mov edi, dword [esi + 0x4d4]
jmp 0x4b5bf7
mov edi, 0x8c7a6b
mov ebx, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
push edi
mov edi, dword [esi + 0x254]
push eax
mov eax, dword [ecx + 0x68]
sub eax, dword [ecx + 0x60]
push edx
mov edx, dword [ecx + 0x64]
sub edx, dword [ecx + 0x5c]
push eax
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x5c]
push edx
push eax
push ecx
call fcn.004972a0
cmp dword [esi + 0x270], 0
je 0x4b6789
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b6789
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
je 0x4b6789
mov eax, dword [ebp + 8]
cmp dword [eax + 0x254], 0
je 0x4b6789
mov edi, eax
add edi, 0x1fc
mov dword [esp + 0xac], edi
call fcn.0046c230
test eax, eax
je 0x4b6789
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
xor edi, edi
mov eax, esi
mov dword [esp + 0x20], edi
call fcn.00488e80
test eax, eax
jle 0x4b6789
jmp 0x4b5cb4
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0xc]
call fcn.00472050
mov ecx, dword [eax]
cmp dword [ecx + 0x2c], 0
je 0x4b6789
call fcn.00472050
mov eax, dword [eax]
mov esi, dword [ebp + 8]
mov ebx, dword [eax]
push esi
call fcn.00476960
mov edx, dword [esi + 0x270]
mov ebx, dword [esp + 0x20]
cmp ebx, dword [edx + 0x8c]
mov dword [esp + 0x18], eax
jne 0x4b5d1a
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x4b5d17
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x218]
mov dword [esp + 0x24], ecx
mov esi, eax
jmp 0x4b5d24
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x214]
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0x270]
cmp dword [eax + 0x90], 0
je 0x4b5e65
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov ecx, dword [eax]
test dword [ecx], 0x200000
je 0x4b5dda
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx]
push eax
call fcn.0046ede0
fstp dword [esp + 0x20]
add esp, 4
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 8]
add eax, 8
mov dword [esp + 0x14], ecx
call fcn.00472050
fld dword [esp + 0x1c]
fmul qword [0x553df0]
mov ecx, eax
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
add eax, 0xc
fldcw word [esp + 0x1c]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
shl edx, 0x18
or edx, dword [esp + 0x24]
fldcw word [esp + 0x10]
push edx
mov edx, dword [esp + 0xb0]
push 0
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.00476f20
jmp 0x4b5e65
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov esi, dword [esp + 0xc]
add eax, 8
mov edi, ebx
mov dword [esp + 0x14], 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 + 0x10], ecx
call fcn.00472050
mov dword [esp + 0x28], eax
call fcn.00472050
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
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 [ebp + 8]
mov edi, dword [ecx + 0x254]
push eax
call fcn.004972a0
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 4
jne 0x4b602f
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x800
jne 0x4b602f
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x4b602f
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x8000
jne 0x4b602f
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 0x10
je 0x4b5f9d
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x88], eax
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
call fcn.00476910
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b6095
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x134]
call fcn.00469660
mov esi, dword [esp + 0xc]
mov dword [esp + 0x28], eax
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x24], edx
call fcn.00472050
mov dword [esp + 0x1c], eax
call fcn.00472050
mov dword [esp + 0x18], eax
call fcn.00472050
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ecx + 0x218]
push edx
lea edx, [ecx + 0x214]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov edx, dword [edx]
push edx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
add eax, 0x30
push eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [ecx + 0x254]
push eax
push ecx
mov ecx, dword [esp + 0x48]
add edx, 0x34
call fcn.00477150
jmp 0x4b6095
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x4b6095
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x14], ecx
call fcn.00472050
mov dword [esp + 0x28], eax
call fcn.00472050
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x254]
push esi
push ecx
mov ecx, dword [edx]
add eax, 0x1c
lea edx, [esp + 0x88]
call fcn.004775f0
mov esi, dword [esp + 0xc]
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x7c]
add eax, 0x3c
mov dword [eax], edx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
jmp 0x4b6095
mov esi, dword [esp + 0xc]
mov edi, ebx
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 + 0x28], eax
call fcn.00472050
mov dword [esp + 0x14], eax
call fcn.00472050
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
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 [ebp + 8]
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [edx + 0x34]
push eax
call fcn.00476c30
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x270]
cmp dword [edx + 0x30], 2
jne 0x4b61cc
mov eax, dword [eax + 0x134]
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 0x3c]
test eax, eax
mov dword [esp + 0x28], eax
je 0x4b61cc
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov edx, dword [eax]
cmp dword [edx + 0x38], 0
je 0x4b61cc
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
add eax, 0x3c
sub ecx, dword [eax]
je 0x4b61cc
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x48]
add eax, 0x3c
sub edx, dword [eax + 4]
je 0x4b61cc
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov edi, dword [esp + 0x28]
call fcn.00497160
test eax, eax
mov dword [esp + 0x18], eax
je 0x4b61cc
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0xc8], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [esp + 0xc]
mov edi, ebx
mov dword [esp + 0xcc], eax
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x40]
add eax, 0x3c
mov dword [esp + 0x28], ecx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
sub ecx, dword [eax + 0x3c]
add eax, 0x3c
mov dword [esp + 0x14], ecx
call fcn.00472050
mov dword [esp + 0x1c], eax
call fcn.00472050
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
push 1
lea ecx, [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0x1c]
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 [ebp + 8]
mov eax, dword [edx + 0x254]
push ecx
push eax
mov eax, dword [esp + 0x34]
xor cl, cl
xor edx, edx
call fcn.0048a300
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000
jne 0x4b6303
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x40000
jne 0x4b6303
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x100
jne 0x4b6303
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x4b6303
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x4b6303
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x400000
je 0x4b6771
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x134]
test eax, eax
je 0x4b6771
mov eax, dword [eax + 0x58]
test eax, eax
je 0x4b6771
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b6771
call fcn.00472050
fld dword [0x554060]
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x50]
add eax, 0x4c
push ecx
mov dword [esp + 0x6c], edx
fstp dword [esp]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x254]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
push edx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x34], 0
call fcn.00482860
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [ebp + 8]
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 0x4b6771
mov esi, dword [esp + 0xc]
mov edi, ebx
mov dword [esp + 0x18], 0
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000
je 0x4b632b
mov ecx, dword [ebp + 8]
add ecx, 0x2ec
jmp 0x4b63a5
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x4b6394
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x4b6394
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x40000
je 0x4b636d
mov edx, dword [ebp + 8]
add edx, 0x32c
mov dword [esp + 0x10], edx
jmp 0x4b63a9
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x100
je 0x4b6579
mov eax, dword [ebp + 8]
add eax, 0x36c
mov dword [esp + 0x10], eax
jmp 0x4b63a9
mov ecx, dword [ebp + 8]
add ecx, 0x3ec
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b6579
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b6579
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xb8], esi
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0xc]
mov edi, ebx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xbc], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x4b64f8
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ecx + 0x44]
mov edx, dword [esp + 0xb8]
add eax, 1
mov dword [esp + 0x8c], eax
add eax, edx
mov dword [esp + 0x94], eax
call fcn.00472050
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x28], eax
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x28]
cmp ecx, dword [edx]
jge 0x4b6499
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x90], ecx
jmp 0x4b64aa
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x40]
mov dword [esp + 0x90], eax
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0xc]
add ecx, edx
mov edi, ebx
mov dword [esp + 0x98], ecx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
add eax, 0x4c
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x98]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov ecx, dword [eax]
mov esi, dword [ecx + 0x4c]
mov eax, dword [ecx + 0x50]
mov edx, dword [ecx + 0x54]
mov edi, dword [esp + 0x18]
add ecx, 0x4c
mov ecx, dword [ecx + 0xc]
push 0
sub ecx, edi
push 0
sub eax, edi
sub ecx, eax
lea edi, [esp + 0xb8]
push edi
push ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x254]
push esi
sub edx, esi
mov esi, dword [esp + 0x28]
push ecx
mov bl, 1
call fcn.0048a340
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0xc]
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x10]
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 esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x4b6771
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x43c]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b6771
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax], 8
je 0x4b6699
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0xa4]
add eax, 1
mov dword [esp + 0x34], eax
add eax, ecx
mov dword [esp + 0x3c], eax
call fcn.00472050
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x28], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
jge 0x4b664f
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x38], eax
jmp 0x4b665d
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0xc]
add eax, ecx
mov edi, ebx
mov dword [esp + 0x40], eax
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov esi, dword [esp + 0xc]
mov edi, ebx
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [eax + 0x50]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
lea ecx, [ecx + eax + 2]
lea edx, [edx + eax + 2]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edx
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
add eax, 0x4c
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xa8]
push 0
push 0
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [esp + 0xb4]
push ecx
mov ecx, dword [eax + 0x254]
push ecx
mov bl, 1
mov eax, edi
call fcn.0048a340
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x20]
lea esi, [ecx + eax]
mov eax, dword [ebp + 8]
mov dword [eax + 0x42c], ecx
mov dword [eax + 0x430], edi
add edx, edi
mov dword [eax + 0x434], esi
mov dword [eax + 0x438], edx
mov dword [eax + 0x45c], 1
mov eax, dword [esp + 0xc]
add ebx, 1
mov dword [esp + 0x20], ebx
call fcn.00488e80
cmp ebx, eax
jl 0x4b5cb0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x254]
test eax, eax
je 0x4b67ac
cmp dword [edi + 0x268], 0
jne 0x4b67ac
mov ecx, dword [0x57aa34]
push ecx
push eax
call fcn.00489f20
mov ecx, edi
call fcn.00475d80
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4