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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
xor eax, eax
push esi
xor esi, esi
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
mov byte [esp + 0x17], 0
mov byte [esp + 0x32], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
cmp dword [ecx + 0x40], esi
jne 0x4723ad
cmp byte [edx + 0x41], al
jne 0x4723ad
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x471089
mov ecx, 0x100
test word [eax + 6], cx
je 0x471089
cmp dword [eax + 0x34], esi
jne 0x471089
mov ecx, dword [eax]
push 1
push eax
push edx
mov dword [esp + 0x54], ecx
mov dword [eax], esi
call fcn.00479bf0
add esp, 0xc
mov dword [ebp + 0x10], esi
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x10], esi
je 0x4723ad
mov esi, dword [ebp + 8]
mov ecx, edx
call fcn.00469260
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4723ad
mov edi, dword [esp + 0x50]
mov esi, dword [ebx + 0x40]
mov ecx, edi
call fcn.00479270
mov ecx, dword [edi + 0x10]
mov edx, dword [ebx]
mov dword [esp + 0x24], eax
add eax, eax
mov eax, dword [ecx + eax*8]
push eax
mov eax, dword [ebp + 8]
push 0
push edx
push 0x12
call fcn.00461900
add esp, 0x10
test eax, eax
jne 0x4723ad
mov al, byte [ebx + 0x2a]
mov esi, dword [ebp + 8]
shr al, 5
and al, 1
mov byte [esp + 0x3f], al
lea eax, [esp + 0x20]
push eax
push 0
push 0x6c
mov edx, ebx
mov eax, esi
call fcn.00486030
xor ecx, ecx
add esp, 0xc
cmp dword [ebx + 0xc], ecx
mov dword [esp + 0x5c], eax
setne cl
mov eax, ebx
mov edi, esi
mov dword [esp + 0x78], ecx
call fcn.00464d00
test eax, eax
jne 0x4723ad
mov edx, dword [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00469350
add esp, 4
test eax, eax
jne 0x4723ad
mov eax, esi
call fcn.0047ce60
mov edi, eax
mov dword [esp + 0x6c], edi
test edi, edi
je 0x4723ad
cmp byte [esi + 0x12], 0
jne 0x47115d
or dword [edi + 0x58], 4
cmp dword [ebp + 0x10], 0
jne 0x47116e
cmp dword [esp + 0x5c], 0
jne 0x47116e
xor eax, eax
jmp 0x471173
mov eax, 1
mov ecx, dword [esp + 0x24]
push eax
mov eax, esi
call fcn.00467ac0
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x4711a6
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push esi
call fcn.00474290
add esp, 0x10
test eax, eax
jne 0x472301
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.004708d0
mov edx, dword [esp + 0x14]
movsx ebx, word [edx + 0x22]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + 1]
lea eax, [ebx + eax + 1]
add esp, 4
mov dword [esi + 0x48], eax
test byte [edx + 0x2a], 0x10
mov dword [esp + 0x80], ecx
mov dword [esp + 0x54], ecx
je 0x4711e8
inc ecx
inc eax
mov dword [esp + 0x54], ecx
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [esp + 0x58], eax
mov al, byte [edx + 0x2a]
shr al, 7
not al
and al, 1
xor ebx, ebx
mov byte [esp + 0x33], al
cmp ecx, ebx
je 0x471301
xor eax, eax
cmp dword [ecx + 4], ebx
jle 0x471223
mov edx, dword [ecx]
mov dword [edx + eax*8 + 4], 0xffffffff
inc eax
cmp eax, dword [ecx + 4]
jl 0x471213
mov dword [esp + 0x28], ebx
cmp dword [ecx + 4], ebx
jle 0x471301
mov eax, dword [esp + 0x10]
mov edx, ebx
movsx ecx, word [eax + 0x22]
xor esi, esi
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x4712a6
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov ebx, dword [eax + 4]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
lea esp, [esp]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00429540
add esp, 8
test eax, eax
je 0x471280
inc esi
add ebx, 0x18
cmp esi, dword [esp + 0x18]
jl 0x471260
jmp 0x4712a6
mov edx, dword [esp + 0x34]
mov dword [edx + 4], esi
cmp dword [esp + 0x28], esi
je 0x471292
mov byte [esp + 0x33], 0
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x20]
cmp esi, ecx
jne 0x4712a6
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x22]
cmp esi, ecx
jl 0x4712e7
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
mov esi, dword [edx + eax*8]
call fcn.00459e00
test eax, eax
je 0x4714b6
cmp byte [esp + 0x3f], 0
jne 0x4714b6
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x33], 0
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x14]
inc edx
mov dword [esp + 0x28], edx
cmp edx, dword [ecx + 4]
jl 0x471236
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4714e0
mov ebx, dword [ebp + 8]
inc dword [ebx + 0x48]
mov eax, dword [edi + 0x20]
mov ecx, dword [ebx + 0x48]
inc eax
push eax
push 0
push ecx
push 0x11
mov esi, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call fcn.004452a0
movzx ecx, byte [esp + 0x43]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x68]
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], eax
mov word [esp + 0x94], 0xd
movsx eax, word [edx + 0x22]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x94]
push ecx
push edx
push ebx
mov dword [esp + 0xac], eax
call fcn.00482580
mov ecx, dword [esp + 0xa8]
add esp, 0x1c
mov dword [esp + 0x68], ecx
test eax, eax
jne 0x4723ad
mov edx, dword [esp + 0x50]
cmp byte [edx + 0x41], al
jne 0x4723ad
cmp dword [ebx + 0x40], eax
jne 0x4723ad
mov eax, dword [esp + 0x1c]
push eax
push 0x12
call fcn.00445350
mov eax, dword [esp + 0x20]
add esp, 8
dec eax
mov edx, edi
call fcn.004459b0
cmp dword [esp + 0x5c], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x34], eax
jne 0x4713f6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov eax, ebx
call fcn.004707d0
add esp, 8
test eax, eax
je 0x47157c
mov edx, dword [ebx + 0x44]
lea eax, [edx + 1]
mov ecx, ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x40], edx
mov dword [ebx + 0x44], eax
call fcn.0045dce0
mov dword [esp + 0x18], eax
call fcn.0045dce0
mov ecx, dword [esp + 0x34]
push ecx
push edx
push 0x39
mov esi, edi
mov dword [esp + 0x30], eax
call fcn.004453b0
mov edx, dword [esp + 0x94]
add esp, 0xc
push edx
push 0x14
call fcn.00445350
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
push 0x31
call fcn.004452a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
push eax
push ecx
push 0x4b
call fcn.004453b0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x64]
add esp, 0x24
push edx
push eax
push ecx
push 0x54
call fcn.004452a0
mov edx, dword [esp + 0x2c]
push edx
push 0
push 0xe
call fcn.004453b0
mov eax, dword [esp + 0x38]
add esp, 0x1c
mov edx, edi
call fcn.004459b0
mov esi, dword [esp + 0x18]
mov edx, ebx
call fcn.0045dd00
mov esi, dword [esp + 0x24]
call fcn.0045dd00
jmp 0x47157c
mov edx, dword [ebx]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + eax*8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ecx
push 0
push edx
push 0x5095cc
push esi
call fcn.00429330
add esp, 0x14
mov byte [esi + 0x11], 1
jmp 0x4723ad
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x98], esi
mov dword [esp + 0x40], 0xffffffff
cmp eax, ebx
je 0x471539
mov eax, dword [eax]
mov dword [esp + 0x34], eax
jmp 0x47153d
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x34], ebx
jle 0x471579
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov edi, dword [edx + eax]
lea esi, [esp + 0x98]
call fcn.004579a0
test eax, eax
jne 0x4723ad
add dword [esp + 0x18], 0x18
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x471547
mov edi, dword [esp + 0x6c]
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x34]
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x471599
cmp esi, eax
jle 0x471599
mov edx, dword [esp + 0x10]
movsx ecx, word [edx + 0x20]
mov dword [esp + 0x44], ecx
jmp 0x47159d
mov edx, dword [esp + 0x10]
test byte [edx + 0x2a], 0x10
je 0x47161a
movsx ecx, word [edx + 0x22]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
cmp ecx, 2
jl 0x4715ee
mov eax, dword [edx + 4]
add ecx, 0xfffffffe
shr ecx, 1
add eax, 0x2f
inc ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x28], edx
movzx edx, byte [eax - 0x18]
shr edx, 1
and edx, 1
add dword [esp + 0x24], edx
movzx edx, byte [eax]
shr edx, 1
and edx, 1
add dword [esp + 0x18], edx
add eax, 0x30
dec ecx
jne 0x4715c7
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
movsx ecx, word [edx + 0x22]
cmp eax, ecx
jge 0x471608
mov ecx, dword [edx + 4]
lea eax, [eax + eax*2]
movzx eax, byte [ecx + eax*8 + 0x17]
shr eax, 1
and eax, 1
jmp 0x47160c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x47164a
test esi, esi
je 0x471666
movsx ecx, word [edx + 0x22]
sub ecx, eax
cmp esi, ecx
je 0x471666
mov edx, dword [ebp + 0xc]
push esi
push ecx
push 0
push edx
push 0x5095ec
push ebx
call fcn.00429330
add esp, 0x18
jmp 0x4723ad
mov eax, dword [ecx + 4]
cmp esi, eax
je 0x471666
push eax
push esi
push 0x509620
push ebx
call fcn.00429330
add esp, 0x10
jmp 0x4723ad
mov eax, dword [esp + 0x50]
test byte [eax + 0x18], 0x80
je 0x47168c
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
push eax
push 0
push 0x17
mov esi, edi
mov dword [esp + 0x88], eax
call fcn.004453b0
add esp, 0xc
cmp dword [esp + 0x78], 0
jne 0x4716f3
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0xffffffffffffffff
push 0x37
push eax
push ebx
call fcn.00473f70
mov esi, dword [esp + 0x6c]
add esp, 0x1c
lea ecx, [eax*4 + 4]
push 0
push ecx
mov dword [esp + 0x24], eax
call fcn.00426a60
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
je 0x4723ad
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jle 0x4716f3
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
mov esi, dword [esp + 0x60]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, edx
jl 0x4716e1
cmp byte [esp + 0x17], 0
je 0x471711
mov edx, dword [esp + 0x40]
push edx
push 0x6d
mov esi, edi
call fcn.00445350
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x20]
jmp 0x47172c
cmp dword [ebp + 0x10], 0
je 0x471733
mov ecx, dword [esp + 0x88]
push ecx
push 0x14
mov esi, edi
call fcn.00445350
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
add esp, 8
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
test eax, edx
jne 0x471776
lea ecx, [eax*8 + 4]
push 0
push ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
call fcn.00426bd0
mov edx, dword [esp + 0x20]
mov dword [edx + 0x70], eax
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x471784
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
test byte [esp + 0x20], 1
mov dword [esp + 0x18], ecx
je 0x471adb
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x22]
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
inc eax
mov dword [esp + 0x2c], edx
cmp eax, ecx
jg 0x4717bc
lea esi, [eax + edx]
sub ecx, eax
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], ecx
jmp 0x4717cb
mov ecx, dword [ebx + 0x48]
lea edx, [ecx + 1]
add ecx, eax
mov dword [esp + 0x2c], edx
mov dword [ebx + 0x48], ecx
mov eax, dword [esp + 0x44]
test eax, eax
jns 0x4717eb
mov ecx, dword [esp + 0x2c]
push ecx
push 0xffffffffffffffff
push 0x17
mov esi, edi
call fcn.004453b0
add esp, 0xc
jmp 0x471874
cmp byte [esp + 0x17], 0
je 0x47180f
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
push 0x2f
mov esi, edi
call fcn.004452a0
add esp, 0x10
jmp 0x471827
push edx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*8]
push edx
push ebx
call fcn.0045c910
add esp, 0xc
mov eax, dword [esp + 0x2c]
push eax
push 0x4d
mov esi, edi
call fcn.00445350
mov ecx, dword [esp + 0x34]
push ecx
push 0xffffffffffffffff
push 0x17
mov ebx, eax
call fcn.004453b0
mov eax, dword [edi + 0x20]
add esp, 0x14
cmp eax, ebx
jbe 0x471859
mov ecx, dword [edi + 4]
lea edx, [ebx + ebx*4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [edi + 0x20]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x18]
push ecx
dec edx
push 0x26
mov esi, edi
mov dword [eax + 0x58], edx
call fcn.00445350
add esp, 8
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x28], ebx
cmp dx, word [eax + 0x22]
jge 0x471a6d
mov dword [esp + 0x1c], edx
mov edi, edi
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x47189b
mov esi, ebx
jmp 0x4718bc
mov ecx, dword [edx + 4]
xor esi, esi
test ecx, ecx
jle 0x4718bc
mov eax, dword [edx]
add eax, 4
lea esp, [esp]
cmp dword [eax], ebx
je 0x4718bc
inc esi
add eax, 8
cmp esi, ecx
jl 0x4718b0
mov al, byte [esp + 0x17]
test al, al
jne 0x4718cb
cmp dword [esp + 0x48], 0
je 0x4718dc
test edx, edx
je 0x4719d6
cmp esi, dword [edx + 4]
jl 0x4719d6
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [ecx + ebx + 1]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + edx + 4]
test eax, eax
je 0x471959
cmp byte [eax], 0x9f
jne 0x471959
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 8]
mov ebx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x20], eax
cmp dword [edx + 0x54], ebx
jg 0x471929
push esi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471a4f
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x1f
jmp 0x471a4f
mov esi, dword [esp + 0x24]
mov edx, dword [ebp + 8]
push esi
push eax
push edx
call fcn.0045b7e0
add esp, 0xc
mov dword [esp + 0x28], eax
cmp eax, esi
je 0x471a53
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
test esi, esi
je 0x471a53
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x20], eax
cmp dword [ecx + 0x54], eax
jg 0x4719a9
push esi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471a53
mov eax, dword [esp + 0x20]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x28]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x20
jmp 0x471a53
test al, al
je 0x471a2d
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x20], eax
cmp dword [ecx + 0x54], eax
jg 0x4719fa
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471a53
mov eax, dword [esp + 0x20]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x40]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
lea ecx, [edx + ebx + 1]
mov byte [eax + 3], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x2f
jmp 0x471a53
mov edx, dword [esp + 0x2c]
lea eax, [edx + ebx + 1]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edx + 4]
mov edx, dword [ebp + 8]
lea ecx, [esi + esi*2]
mov ebx, dword [eax + ecx*8]
push edx
call fcn.0045ca30
add esp, 8
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x22]
add dword [esp + 0x1c], 0x18
inc ebx
mov dword [esp + 0x28], ebx
cmp ebx, ecx
jl 0x471890
cmp dword [esp + 0x78], 0
jne 0x471a88
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc edx
push edx
mov ebx, edi
call fcn.00470710
add esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movsx edx, word [esi + 0x22]
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x64]
mov eax, edi
sub eax, edx
mov edx, dword [ebp + 8]
dec eax
push eax
push esi
push 1
push 0
push 0x6c
push ecx
push edx
call fcn.00486940
movsx esi, word [esi + 0x22]
mov eax, dword [ebp + 8]
inc esi
add esp, 0x24
mov ecx, esi
call fcn.0045b280
mov ebx, eax
cmp esi, dword [eax + 0x38]
jle 0x471ad7
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], edi
mov edi, dword [esp + 0x6c]
cmp dword [esp + 0x78], 0
jne 0x472075
mov ebx, dword [esp + 0x10]
test byte [ebx + 0x2a], 0x10
je 0x471b34
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x471b08
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471b34
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x80]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x1a
jmp 0x471b36
xor ecx, ecx
cmp dword [esp + 0x44], ecx
jl 0x471c73
cmp byte [esp + 0x17], 0
mov ebx, dword [esp + 0x54]
push ebx
je 0x471bc6
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push 0x2f
mov esi, edi
call fcn.004452a0
add esp, 0x10
mov esi, dword [esp + 0x10]
test byte [esi + 0x2a], 0x10
jne 0x471c52
push ebx
push 0x4d
mov esi, edi
call fcn.00445350
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
push eax
push ebx
push ecx
push 0x4b
call fcn.004452a0
mov eax, dword [edi + 0x20]
add esp, 0x18
cmp eax, dword [esp + 0x20]
jbe 0x471baa
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec edx
push ebx
push 0x26
mov esi, edi
mov dword [eax + 0x58], edx
call fcn.00445350
add esp, 8
jmp 0x471cb5
cmp dword [ebp + 0x10], ecx
je 0x471be2
mov edx, dword [esp + 0x6c]
add edx, dword [esp + 0x48]
mov esi, edi
push edx
push 0x1f
call fcn.004453b0
add esp, 0xc
jmp 0x471b62
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*8]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0045c910
mov ecx, dword [edi]
mov eax, dword [edi + 0x20]
add esp, 0xc
cmp byte [ecx + 0x41], 0
je 0x471c12
mov eax, 0x515234
jmp 0x471c24
lea edx, [eax + eax*4 - 5]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
test eax, eax
je 0x471b62
cmp byte [eax], 0x1a
jne 0x471b62
mov esi, dword [esp + 0x10]
test byte [esi + 0x2a], 0x10
jne 0x471c52
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov byte [esp + 0x32], 1
mov byte [eax], 0x4b
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
jmp 0x471cb9
mov ecx, dword [edi + 0x20]
add ecx, 2
push ecx
push ebx
push 0x4c
mov esi, edi
call fcn.004453b0
add esp, 0xc
push ebx
push 0x26
call fcn.00445350
add esp, 8
jmp 0x471cb5
test byte [ebx + 0x2a], 0x10
jne 0x471ca2
cmp byte [esp + 0x3f], 0
jne 0x471ca2
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
push edx
push ebx
push eax
push 0x4b
mov esi, edi
call fcn.004452a0
add esp, 0x10
mov byte [esp + 0x32], 1
jmp 0x471cb5
mov ebx, dword [esp + 0x54]
push ebx
push 0
push 0x1a
mov esi, edi
call fcn.004453b0
add esp, 0xc
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x38], 0
jle 0x471d15
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp dword [edx + 0x54], ecx
jg 0x471cee
push eax
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471d15
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc dword [eax + 0x20]
mov edx, dword [eax + 4]
lea ecx, [ecx + ecx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x89
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp dx, word [esi + 0x22]
jge 0x471de3
mov dword [esp + 0x24], eax
nop
mov edx, dword [esp + 0x28]
movsx ecx, word [esi + 0x20]
mov eax, dword [esp + 0x58]
add eax, edx
xor ebx, ebx
mov dword [esp + 0x38], eax
cmp edx, ecx
jne 0x471d87
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x471d60
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471dc5
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x38]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x1b
jmp 0x471dc5
cmp dword [ebp + 0x14], ebx
jne 0x471e56
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x24]
test byte [eax + ecx + 0x17], 2
je 0x471e4e
inc dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov edi, dword [eax + ecx + 4]
mov ebx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
call fcn.0045c970
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
movsx edx, word [esi + 0x22]
add dword [esp + 0x24], 0x18
inc eax
mov dword [esp + 0x28], eax
cmp eax, edx
jl 0x471d30
test byte [esi + 0x2a], 0x10
je 0x471fef
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x471e0f
mov ecx, dword [esp + 0x50]
lea esp, [esp]
cmp dword [eax], ecx
je 0x471e0b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x471e00
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
call fcn.0048b010
movsx ebx, word [esi + 0x22]
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add esp, 4
add ebx, 2
cmp dword [eax + 0x54], esi
jg 0x471f3e
push edi
call fcn.00445210
add esp, 4
test eax, eax
je 0x471f3e
mov eax, 1
xor ebx, ebx
jmp 0x471f6f
mov esi, edx
sub esi, dword [esp + 0x2c]
jmp 0x471e73
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
xor esi, esi
test ecx, ecx
jle 0x471e7b
mov eax, dword [eax]
add eax, 4
cmp dword [eax], edx
je 0x471e73
inc esi
add eax, 8
cmp esi, ecx
jl 0x471e67
test esi, esi
js 0x471da6
cmp dword [esp + 0x34], 0
je 0x471da6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x471e96
cmp esi, dword [eax + 4]
jge 0x471da6
cmp byte [esp + 0x17], 0
je 0x471eeb
mov ebx, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], ebx
jg 0x471eb9
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x471dc5
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x40]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x38]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x2f
jmp 0x471dc5
cmp dword [ebp + 0x10], 0
je 0x471f1a
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x68], edx
je 0x471dc5
mov eax, dword [esp + 0x38]
add esi, dword [esp + 0x68]
push eax
push esi
push 0x20
mov esi, edi
call fcn.004453b0
add esp, 0xc
jmp 0x471dc5
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 8]
lea eax, [esi + esi*2]
mov eax, dword [edx + eax*8]
push eax
push ecx
call fcn.0045c910
add esp, 0xc
jmp 0x471dc5
mov eax, dword [edi + 4]
mov ecx, 1
add dword [edi + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], ebx
xor ebx, ebx
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0xd
mov eax, esi
mov esi, dword [edi + 4]
mov edx, dword [edi]
cmp esi, ebx
je 0x471fb7
cmp byte [edx + 0x41], 0
jne 0x471fb7
cmp eax, ebx
jge 0x471f86
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.004459d0
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x471fad
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0
jmp 0x471fb7
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
inc dword [eax + 0xc]
mov edx, dword [ebp + 0x18]
cmp edx, 0xa
jne 0x471fc4
mov edx, 2
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x471fd5
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], dl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x198]
cmp eax, ebx
jne 0x471fe4
mov eax, ecx
mov byte [eax + 0x15], 1
mov ebx, ecx
jmp 0x472075
cmp dword [esp + 0x44], 0
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x80]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
mov eax, dword [esp + 0x70]
setge cl
movzx edx, cl
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x70]
push 0
push ebx
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push esi
push eax
call fcn.004724a0
mov ecx, dword [ebp + 8]
add esp, 0x2c
push 0
push 0
push ebx
push 0
push esi
push ecx
call fcn.0046eea0
movzx eax, byte [esp + 0x4a]
mov ecx, dword [esp + 0x78]
xor edx, edx
cmp dword [esp + 0x38], edx
sete dl
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x6c]
push 0
push ecx
mov ecx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
push ecx
call fcn.00473c70
mov ebx, dword [ebp + 8]
add esp, 0x3c
mov edx, dword [esp + 0x50]
test byte [edx + 0x18], 0x80
mov esi, dword [esp + 0x58]
je 0x4720cf
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x20], eax
cmp dword [ecx + 0x54], eax
jg 0x47209f
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x4720cf
mov eax, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x7c]
mov ecx, 1
add dword [edi + 0x20], ecx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x25
cmp dword [esp + 0x5c], 0
je 0x472102
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x14]
movsx edx, word [eax + 0x22]
push ecx
sub esi, edx
sub esi, 2
push esi
push eax
mov eax, dword [esp + 0x6c]
push 2
push 0
push 0x6c
push eax
push ebx
call fcn.00486940
add esp, 0x24
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x18]
js 0x47211b
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x47211b
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [edi + 0x20]
dec edx
cmp byte [esp + 0x17], 0
mov dword [ecx + 0x58], edx
je 0x4721d4
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x472145
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x472170
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 8
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jbe 0x472185
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
dec eax
mov dword [ecx + 0x58], eax
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x4721ab
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x472238
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x40]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3d
jmp 0x472238
cmp dword [ebp + 0x10], 0
je 0x472238
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x4721f2
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x472219
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xe
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jbe 0x47222e
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
dec eax
mov dword [ecx + 0x58], eax
mov edx, dword [esp + 0x10]
test byte [edx + 0x2a], 0x10
jne 0x4722fe
cmp dword [esp + 0x78], 0
jne 0x4722fe
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x4c], eax
jge 0x47229b
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x472273
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x47229b
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x4c]
xor ecx, ecx
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3d
jmp 0x47229d
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
cmp eax, ecx
je 0x4722fe
mov ebx, dword [esp + 0x64]
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x4722c8
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x4722ec
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
xor ecx, ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax + 3], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3d
jmp 0x4722ee
xor ecx, ecx
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x14]
inc ebx
mov dword [esp + 0x20], eax
cmp eax, ecx
jne 0x4722b0
mov esi, dword [ebp + 8]
cmp byte [esi + 0x12], 0
jne 0x472319
cmp dword [esi + 0x19c], 0
jne 0x472319
push esi
call fcn.00470d90
add esp, 4
mov eax, dword [esp + 0x50]
test byte [eax + 0x18], 0x80
je 0x4723ad
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x12], 0
jne 0x4723ad
mov edx, ecx
cmp dword [edx + 0x19c], 0
jne 0x4723ad
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x472357
push edi
call fcn.00445210
add esp, 4
test eax, eax
jne 0x472383
mov eax, dword [edi + 4]
mov ecx, 1
add dword [edi + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x21
push 1
push edi
call fcn.00446d80
mov eax, dword [edi]
add esp, 8
cmp byte [eax + 0x41], 0
jne 0x4723ad
mov ecx, dword [edi + 0x10]
push 0
push 1
push 0x50963c
or eax, 0xffffffff
call fcn.004447b0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x50]
push ecx
mov eax, esi
call fcn.00467270
mov edx, dword [esp + 0x4c]
add esp, 4
push edx
push esi
call fcn.00459850
mov eax, dword [ebp + 0x10]
push 1
push eax
push esi
call fcn.00479bf0
mov edi, dword [ebp + 0x14]
add esp, 0x14
call fcn.00466e90
mov edi, dword [esp + 0x60]
test edi, edi
je 0x472495
test esi, esi
je 0x472435
cmp dword [esi + 0x208], 0
je 0x47240a
mov eax, edi
mov ecx, esi
call fcn.004267a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, dword [esi + 0x114]
jb 0x472435
cmp edi, dword [esi + 0x118]
jae 0x472435
mov ecx, dword [esi + 0x110]
mov dword [edi], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x512988], 0
je 0x47248b
mov eax, dword [0x515ee8]
test eax, eax
je 0x472451
push eax
call dword [0x5129dc]
add esp, 4
push edi
call dword [0x5129b8]
sub dword [0x515d30], eax
dec dword [0x515d54]
add esp, 4
push edi
call dword [0x5129b0]
mov eax, dword [0x515ee8]
add esp, 4
test eax, eax
je 0x472495
push eax
call dword [0x5129e4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x5129b0]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret