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

Disassembly:
push 0xffffffffffffffff
push 0x4db493
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51d260]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x20], eax
xor edi, edi
mov eax, 0xf
mov esi, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], edi
mov byte [esp + 0xd0], 0
mov dword [esp + 0xf4], edi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], edi
mov byte [esp + 0xb4], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
mov eax, dword [esi + 0x490]
mov ecx, dword [esi + 0x20]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0x4e2934
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
mov dword [esi + 0x1c8], 0x19
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
mov ecx, dword [esi + 0x7d0]
sub ecx, dword [esi + 0x7cc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov byte [esp + 0xf4], 3
mov dword [esp + 0x78], ebx
jne 0x4706b1
lea ecx, [esp + 0x24]
mov byte [esp + 0xf4], 2
mov dword [esp + 0x24], 0x4e2934
call fcn.00408940
mov esi, 0x10
cmp dword [esp + 0xac], esi
jb 0x47066a
mov eax, dword [esp + 0x98]
push eax
call fcn.0048f8b2
add esp, 4
mov ebx, 0xf
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], esi
jb 0x47069e
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0048f8b2
add esp, 4
cmp dword [esp + 0xe4], esi
mov dword [esp + 0xc8], ebx
jmp 0x4710e1
lea ecx, [esi + 0x180]
mov dword [esp + 0x4c], ecx
call fcn.004594e0
mov eax, dword [esi + 0x840]
lea edi, [esi + 0x830]
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], eax
cmp dword [edi + 0xc], eax
jbe 0x4706de
call fcn.004a067d
mov eax, dword [edi]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x3c], eax
cmp eax, dword [edi + 0x10]
jbe 0x4706f5
call fcn.004a067d
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
mov eax, dword [edi]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
push eax
lea edx, [esp + 0x78]
push edx
mov ecx, edi
call fcn.004205c0
mov eax, dword [esi + 0x20]
push eax
push 1
push 2
call dword [sym.imp.gdi32.dll_CreatePen]
push eax
lea ecx, [esp + 0x28]
call fcn.0049223a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
call fcn.00492325
mov ecx, dword [esi + 0x1c8]
lea edi, [ebx - 1]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
test edi, edi
jl 0x4707a3
jmp 0x470760
mov edx, dword [esi + 0x800]
sub edx, dword [esi + 0x7fc]
sar edx, 2
cmp edi, edx
jb 0x47077c
call fcn.004a067d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x7fc]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esp + 0x34]
add edx, ebp
add ecx, edx
cmp ecx, 0x24e
mov dword [esp + 0x34], ecx
jge 0x4707a3
dec edi
inc eax
mov dword [esp + 0x1c], eax
test edi, edi
jge 0x470760
add eax, dword [esi + 0x808]
cmp eax, ebx
jge 0x4707b3
mov edi, ebx
sub edi, eax
jmp 0x4707c7
jne 0x4707c5
xor eax, eax
test edi, edi
setl al
dec eax
and eax, edi
mov dword [esi + 0x808], eax
xor edi, edi
cmp edi, ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
mov ebp, 0x10
jge 0x471056
mov ecx, dword [esi + 0x7d0]
sub ecx, dword [esi + 0x7cc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x470808
call fcn.004a067d
mov eax, dword [esi + 0x7cc]
lea edx, [edi*8]
push 0xffffffffffffffff
sub edx, edi
lea eax, [eax + edx*4]
push 0
push eax
lea ecx, [esp + 0xa0]
call fcn.004017c0
mov ecx, dword [esi + 0x7e8]
sub ecx, dword [esi + 0x7e4]
sar ecx, 2
cmp edi, ecx
jb 0x470843
call fcn.004a067d
mov edx, dword [esi + 0x7e4]
mov edi, dword [edx + edi*4]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], ecx
cmp edi, 0xffffffff
je 0x47087c
mov eax, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x54], edx
mov dword [esi + 0x20], eax
jmp 0x470883
mov edx, dword [esp + 0x30]
mov dword [esi + 0x20], edx
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x470d95
mov byte [esp + 0x1a], 0
jmp 0x4708a7
mov ecx, dword [esp + 0xa8]
mov ebp, dword [esp + 0x14]
cmp ebp, ecx
jbe 0x4708bb
call fcn.004a067d
mov ecx, dword [esp + 0xa8]
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x4708d3
lea eax, [esp + 0x98]
mov bl, byte [eax + ebp]
lea edi, [ebp + 2]
cmp edi, ecx
jbe 0x4708e2
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x4708fa
lea eax, [esp + 0x98]
mov al, byte [edi + eax]
push 0
push 0x4dd6d7
lea ecx, [esp + 0xd4]
mov byte [esp + 0x21], al
call fcn.004018a0
push 0
push 0x4dd6d7
lea ecx, [esp + 0xb8]
call fcn.004018a0
cmp bl, 0xff
jne 0x470deb
cmp byte [esp + 0x19], bl
jne 0x470deb
add ebp, 3
cmp ebp, dword [esp + 0xa8]
jbe 0x47094b
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x470963
lea eax, [esp + 0x98]
movsx eax, byte [eax + ebp]
inc ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebp
test eax, eax
jle 0x470a1c
mov ebx, dword [esp + 0x14]
mov edi, ebp
add edi, 2
mov ebp, eax
cmp ebx, dword [esp + 0xa8]
jbe 0x470991
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x4709a9
lea eax, [esp + 0x98]
mov cl, byte [eax + ebx]
mov byte [esp + 0x80], cl
mov edx, dword [esp + 0x80]
push edx
push 1
lea ecx, [esp + 0xd4]
call fcn.00401710
cmp edi, dword [esp + 0xa8]
jbe 0x4709d7
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x4709ef
lea eax, [esp + 0x98]
mov al, byte [eax + edi]
mov byte [esp + 0x74], al
mov ecx, dword [esp + 0x74]
push ecx
push 1
lea ecx, [esp + 0xd4]
call fcn.00401710
add ebx, 3
add edi, 3
sub ebp, 1
jne 0x470983
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0xa8]
jbe 0x470a2e
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x470a46
lea eax, [esp + 0x98]
movsx ebx, byte [eax + edi]
inc edi
mov dword [esp + 0x14], edi
test ebx, ebx
jle 0x470af7
mov ebp, dword [esp + 0x14]
add edi, 2
mov dword [esp + 0x40], ebx
cmp ebp, dword [esp + 0xa8]
jbe 0x470a70
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x470a88
lea eax, [esp + 0x98]
mov dl, byte [eax + ebp]
mov byte [esp + 0x70], dl
mov eax, dword [esp + 0x70]
push eax
push 1
lea ecx, [esp + 0xb8]
call fcn.00401710
cmp edi, dword [esp + 0xa8]
jbe 0x470ab0
call fcn.004a067d
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x470ac8
lea eax, [esp + 0x98]
mov cl, byte [eax + edi]
mov byte [esp + 0x7c], cl
mov edx, dword [esp + 0x7c]
push edx
push 1
lea ecx, [esp + 0xb8]
call fcn.00401710
add ebp, 3
add edi, 3
sub dword [esp + 0x40], 1
jne 0x470a62
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0x48c]
mov eax, dword [esi + 0xc8]
add eax, ecx
imul eax, ebx
cdq
idiv dword [esp + 0x2c]
lea edx, [ebx + 1]
imul edx, ecx
add edx, dword [esi + 0x1c4]
mov ebp, 1
add edx, dword [esp + 0x34]
cmp edx, dword [esi + 0x23c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x528]
mov dword [esp + 0x40], eax
mov dword [esi + 0x528], ebp
jl 0x470c85
mov edi, dword [esi + 0x1bc]
cmp edi, dword [esi + 0xb4]
mov eax, dword [esi + 0x238]
mov ecx, dword [esi + 0xcc]
mov dword [esi + 0x1c4], eax
jge 0x470c50
add ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x1b8]
add dword [esi + 0x1c8], ecx
add dword [esi + 0x1c0], ebp
inc edi
add edx, 3
cmp dword [esp + 0x3c], edx
mov dword [esi + 0x1bc], edi
jg 0x470c85
mov edx, dword [esi + 0x490]
mov eax, dword [esi + 0x48c]
push edx
push eax
mov ecx, esi
call fcn.00468820
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esi + 0x1b8], edi
mov byte [esp + 0xf4], 2
mov dword [esp + 0x24], 0x4e2934
call fcn.00408940
mov esi, 0x10
cmp dword [esp + 0xac], esi
jb 0x470be6
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0048f8b2
add esp, 4
mov ebx, 0xf
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], esi
jb 0x470c1a
mov edx, dword [esp + 0xb4]
push edx
call fcn.0048f8b2
add esp, 4
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], edi
mov byte [esp + 0xb4], 0
cmp dword [esp + 0xe4], esi
jb 0x470c49
mov eax, dword [esp + 0xd0]
push eax
call fcn.0048f8b2
add esp, 4
mov eax, ebp
jmp 0x471104
mov eax, dword [esi + 0x490]
mov edx, dword [esi + 0x1c8]
lea ebp, [ecx + eax]
lea ebp, [edx + ebp*2]
cmp ebp, 0x24e
jge 0x47112e
add ecx, edx
add ecx, eax
inc edi
inc dword [esi + 0x1c0]
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], edi
mov ecx, dword [esp + 0x20]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x88], esp
push 0xffffffffffffffff
xor edi, edi
push edi
lea edx, [esp + 0xf4]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edi
push edx
mov byte [ecx + 4], 0
call fcn.004017c0
mov eax, dword [esp + 0x4c]
push ebx
push eax
mov ecx, esi
call fcn.00469500
lea eax, [ebx + ebx]
cmp eax, edi
mov dword [esp + 0x2c], eax
jle 0x470d7d
cmp edi, dword [esp + 0xc4]
jbe 0x470ce0
call fcn.004a067d
cmp dword [esp + 0xc8], 0x10
mov eax, dword [esp + 0xb4]
jae 0x470cf8
lea eax, [esp + 0xb4]
mov bl, byte [eax + edi]
lea ebp, [edi + 1]
cmp ebp, dword [esp + 0xc4]
jbe 0x470d0c
call fcn.004a067d
cmp dword [esp + 0xc8], 0x10
mov eax, dword [esp + 0xb4]
jae 0x470d24
lea eax, [esp + 0xb4]
mov cl, byte [eax + ebp]
mov al, byte [esi + 0xfa5]
mov dl, byte [esi + 0x858]
add dl, al
dec dl
xor cl, dl
mov edx, dword [esp + 0x20]
xor bl, al
push 0
mov byte [esp + 0x1d], cl
mov ecx, dword [esp + 0x104]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.0046e8b0
mov eax, dword [esi + 0xc8]
add eax, dword [esi + 0x48c]
add edi, 2
add dword [esi + 0x1c4], eax
cmp edi, dword [esp + 0x2c]
jl 0x470cd2
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x528], ecx
mov ebp, dword [esp + 0x14]
cmp ebp, dword [esp + 0x3c]
jl 0x4708a0
mov ebp, dword [esp + 0x1c]
cmp ebp, 0xffffffff
je 0x471000
mov edi, dword [esp + 0x54]
mov ecx, dword [esi + 0x1c8]
sub ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x23c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x68]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x5c]
call fcn.0045aad0
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x470fbf
xor ecx, ecx
jmp 0x470fc7
add ebp, 3
mov dword [esp + 0x14], ebp
cmp bl, 0xfe
je 0x470ef2
cmp byte [esp + 0x19], 0xfe
je 0x470ef2
cmp dword [esi + 0x230], 1
jne 0x470e24
mov edx, dword [esi + 0x490]
mov eax, dword [esi + 0x48c]
push edx
push eax
mov ecx, esi
call fcn.00468820
mov al, byte [esi + 0xfa5]
mov cl, byte [esi + 0x858]
mov edi, dword [esp + 0x20]
push 0
add cl, al
xor bl, al
mov eax, dword [esp + 0x104]
lea edx, [esp + 0x1c]
push edx
dec cl
xor byte [esp + 0x21], cl
push eax
push edi
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.0046e8b0
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x48c]
mov edx, dword [esi + 0x1c4]
add eax, eax
lea ebp, [edx + ecx*2]
add ebp, eax
cmp ebp, dword [esi + 0x23c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], 0
jl 0x470edd
mov ecx, dword [esi + 0x238]
mov eax, dword [esi + 0x490]
mov dword [esi + 0x1c4], ecx
mov ecx, dword [esi + 0xcc]
lea edx, [ecx + eax]
add dword [esi + 0x1c8], edx
mov edx, dword [esi + 0x1c8]
add edx, ecx
add edx, eax
cmp edx, 0x24e
jge 0x471295
cmp bl, 0xfe
je 0x470ecd
cmp byte [esp + 0x19], 0xfe
jne 0x470d87
mov ebp, dword [esp + 0x14]
add ebp, 3
mov dword [esp + 0x14], ebp
jmp 0x470d8b
mov eax, dword [esi + 0xc8]
add eax, ecx
add eax, edx
mov dword [esi + 0x1c4], eax
jmp 0x470d87
cmp dword [esp + 0x50], 0
jne 0x470d8b
mov ecx, dword [esi + 0x238]
mov eax, dword [esi + 0x490]
mov dword [esi + 0x1c4], ecx
mov ecx, dword [esi + 0xcc]
lea edx, [ecx + eax]
add dword [esi + 0x1c8], edx
mov edx, dword [esi + 0x1c8]
mov ebx, 1
add dword [esi + 0x1bc], ebx
add dword [esi + 0x1c0], ebx
add edx, ecx
add edx, eax
cmp edx, 0x24e
mov dword [esp + 0x50], ebx
jl 0x470d8b
cmp dword [esi + 0x230], ebx
jne 0x470f62
mov edx, eax
mov eax, dword [esi + 0x48c]
push edx
push eax
mov ecx, esi
call fcn.00468820
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
cmp ebp, 0xffffffff
je 0x4713f9
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esp + 0x54]
sub ecx, dword [esi + 0xcc]
mov esi, dword [esi + 0x23c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x5c]
call fcn.0045aad0
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4713b8
xor ecx, ecx
jmp 0x4713c0
mov ecx, dword [edi + 0x14]
sub ecx, eax
sar ecx, 2
mov ebx, dword [edi + 0x10]
mov edx, ebx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x470fdf
mov dword [ebx], ebp
add ebx, 4
mov dword [edi + 0x10], ebx
jmp 0x471000
cmp eax, ebx
jbe 0x470fe8
call fcn.004a067d
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
lea edx, [esp + 0x98]
push edx
mov ecx, edi
call fcn.0040e5a0
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x238]
mov edi, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x8c]
push edx
mov ecx, edi
call fcn.00491e4f
mov eax, dword [esi + 0x1c8]
push eax
push 0x276
mov ecx, edi
call fcn.00491b9f
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
add dword [esi + 0x1c8], ecx
inc edi
cmp edi, dword [esp + 0x78]
mov dword [esp + 0x38], edi
jl 0x4707e0
mov ebp, 0x10
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.00492325
lea ecx, [esp + 0x24]
mov byte [esp + 0xf4], 2
mov dword [esp + 0x24], 0x4e2934
call fcn.00408940
cmp dword [esp + 0xac], ebp
jb 0x47109d
mov eax, dword [esp + 0x98]
push eax
call fcn.0048f8b2
add esp, 4
xor edi, edi
mov esi, 0xf
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], ebp
jb 0x4710d3
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0048f8b2
add esp, 4
cmp dword [esp + 0xe4], ebp
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb4], 0
mov dword [esp + 0xc4], edi
jb 0x471102
mov edx, dword [esp + 0xd0]
push edx
call fcn.0048f8b2
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004a0abf
add esp, 0xe4
ret 8
cmp dword [esi + 0x230], 1
jne 0x47114c
mov ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x48c]
push ecx
push edx
mov ecx, esi
call fcn.00468820
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x20], eax
cmp ebx, 0xffffffff
je 0x4711e3
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esp + 0x54]
sub ecx, dword [esi + 0xcc]
mov esi, dword [esi + 0x23c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x5c]
call fcn.0045aad0
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4711a2
xor ecx, ecx
jmp 0x4711aa
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x4711c2
mov dword [edi], ebx
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x4711e3
cmp eax, edi
jbe 0x4711cb
call fcn.004a067d
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
lea edx, [esp + 0x90]
push edx
mov ecx, esi
call fcn.0040e5a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00492325
lea ecx, [esp + 0x24]
mov byte [esp + 0xf4], 2
mov dword [esp + 0x24], 0x4e2934
call fcn.00408940
mov esi, 0x10
cmp dword [esp + 0xac], esi
jb 0x471228
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0048f8b2
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0xc8], esi
jb 0x47125d
mov edx, dword [esp + 0xb4]
push edx
call fcn.0048f8b2
add esp, 4
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0xe4], esi
jb 0x47128b
mov eax, dword [esp + 0xd0]
push eax
call fcn.0048f8b2
add esp, 4
mov eax, 1
jmp 0x471104
cmp dword [esi + 0x230], 1
jne 0x4712b3
mov ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x48c]
push ecx
push edx
mov ecx, esi
call fcn.00468820
cmp dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x30]
mov dword [esi + 0x20], eax
je 0x471302
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esp + 0x54]
sub ecx, dword [esi + 0xcc]
mov esi, dword [esi + 0x23c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x5c]
call fcn.0045aad0
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x1c]
push eax
call fcn.00423950
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, edi
call fcn.00492325
lea ecx, [esp + 0x24]
mov byte [esp + 0xf4], 2
mov dword [esp + 0x24], 0x4e2934
call fcn.00408940
mov esi, 0x10
cmp dword [esp + 0xac], esi
jb 0x471345
mov edx, dword [esp + 0x98]
push edx
call fcn.0048f8b2
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], esi
jb 0x47137b
mov eax, dword [esp + 0xb4]
push eax
call fcn.0048f8b2
add esp, 4
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], edi
mov byte [esp + 0xb4], 0
cmp dword [esp + 0xe4], esi
jb 0x47128b
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0048f8b2
add esp, 4
mov eax, 1
jmp 0x471104
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x4713d8
mov dword [edi], ebp
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x4713f9
cmp eax, edi
jbe 0x4713e1
call fcn.004a067d
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
lea edx, [esp + 0x90]
push edx
mov ecx, esi
call fcn.0040e5a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00492325
lea ecx, [esp + 0x24]
mov byte [esp + 0xf4], 2
mov dword [esp + 0x24], 0x4e2934
call fcn.00408940
mov esi, 0x10
cmp dword [esp + 0xac], esi
jb 0x47143e
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0048f8b2
add esp, 4
xor ebp, ebp
mov edi, 0xf
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], esi
jb 0x471474
mov edx, dword [esp + 0xb4]
push edx
call fcn.0048f8b2
add esp, 4
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebp
mov byte [esp + 0xb4], 0
cmp dword [esp + 0xe4], esi
jb 0x4714a3
mov eax, dword [esp + 0xd0]
push eax
call fcn.0048f8b2
add esp, 4
mov eax, ebx
jmp 0x471104