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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b92d
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ecx, dword [edi + 0x18]
call fcn.00409ee0
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, 2
jne 0x40c225
test eax, eax
jne 0x40c225
push ecx
mov ecx, edi
call fcn.0040a3a0
mov ecx, dword [edi + 0x18]
call fcn.00409ee0
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x74], 0x54be50
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp ecx, 3
jne 0x40c2d0
test eax, eax
jne 0x40c2d0
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push dword [ebp + 0xc]
lea esi, [ebx + 0x150]
push eax
push esi
push dword [ebx + 0x144]
mov ecx, edi
push dword [ebx + 0x140]
call fcn.0040b8c0
mov edi, eax
test edi, edi
je 0x40c2aa
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.0040da60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x140]
add dword [esi], eax
mov eax, dword [ebx + 0x144]
mov edi, dword [ebp - 0x14]
adc dword [esi + 4], eax
mov ecx, dword [edi + 0x18]
call fcn.00409ee0
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x38], 0x54bce8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x60], 0x54bd00
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x4c], 0x54bc1c
mov byte [ebp - 4], 3
mov edx, 8
cmp ecx, 4
jne 0x40c3a1
test eax, eax
jne 0x40c3a1
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebx + 0x50]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x14]
push eax
push ebx
lea esi, [ebx + 0x148]
push esi
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0040b560
mov eax, dword [ebx + 0x140]
add dword [esi], eax
mov eax, dword [ebx + 0x144]
adc dword [esi + 4], eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x18]
call fcn.00409ee0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jmp 0x40c4f0
xor esi, esi
mov dword [ebp + 0xc], esi
cmp dword [ebx + 0x44], esi
jle 0x40c4ed
jmp 0x40c3b6
mov edx, 8
mov ecx, dword [ebx + 0x54]
cmp dword [ebx + 0x58], ecx
jne 0x40c3e0
mov eax, 1
cmp ecx, 0x40
jl 0x40c3cf
mov eax, ecx
shr eax, 2
jmp 0x40c3d5
cmp ecx, 8
cmovge eax, edx
add eax, ecx
push eax
lea ecx, [ebx + 0x50]
call fcn.0041aac0
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
mov dword [eax + ecx*4], 1
inc dword [ebx + 0x58]
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.004054e0
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x24], edx
cmp ecx, esi
jne 0x40c43b
mov ecx, 1
cmp esi, 0x40
jl 0x40c421
mov ecx, esi
shr ecx, 2
jmp 0x40c42c
cmp esi, 8
mov eax, 8
cmovge ecx, eax
lea eax, [esi + ecx]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041aac0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
mov dword [eax + ecx*8], edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [eax + ecx*8 + 4], edx
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov al, byte [esi + 0x54]
mov byte [ebp + 0x13], al
cmp edx, ecx
jne 0x40c491
mov eax, 1
cmp ecx, 0x40
jl 0x40c478
mov eax, ecx
shr eax, 2
jmp 0x40c483
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0041aac0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov cl, byte [ebp + 0x13]
mov byte [eax + edx], cl
inc dword [ebp - 0x58]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov esi, dword [esi + 0x50]
cmp edx, ecx
jne 0x40c4d4
mov eax, 1
cmp ecx, 0x40
jl 0x40c4bb
mov eax, ecx
shr eax, 2
jmp 0x40c4c6
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041aac0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [eax + edx*4], esi
mov esi, dword [ebp + 0xc]
inc dword [ebp - 0x44]
inc esi
mov dword [ebp + 0xc], esi
cmp esi, dword [ebx + 0x44]
jl 0x40c3b1
mov esi, dword [ebp - 0x14]
push dword [ebx + 0x6c]
mov eax, dword [ebx + 0x64]
lea edi, [ebx + 0x64]
push 0
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, edx
or eax, ecx
jne 0x40c613
mov byte [ebp - 4], 2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x40]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
push 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x60], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x54]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x38], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x2c]
call fcn.004ea37d
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x74], 0x54be50
mov dword [ebp - 4], 4
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x74]
push 0
call dword [0x54be54]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x74]
push 0
mov dword [ebp - 0x74], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x68]
call fcn.004ea37d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edx, 5
jne 0x40cce8
test ecx, ecx
jne 0x40cce8
mov ecx, dword [esi + 0x18]
call fcn.00409ee0
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x40cce8
cmp eax, 0x7fffffff
ja 0x40cce8
push eax
mov ecx, edi
call fcn.0041aac0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c6d1
mov ebx, eax
mov edx, 2
lea esp, [esp]
xor ecx, ecx
mov eax, 4
mul edx
seto cl
mov dword [ebp - 0xc0], 0
neg ecx
or ecx, eax
push ecx
call fcn.004ea3f3
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0xc4], esi
mov word [esi], ax
mov dword [ebp - 0xbc], 4
mov dword [ebp - 0xb8], 1
lea eax, [ebp - 0xd4]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040d8c0
push esi
mov byte [ebp - 4], 3
call fcn.004ea37d
add esp, 4
mov edx, 2
dec ebx
jne 0x40c660
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x15c]
cmp dword [ebx + 0x160], ecx
lea edi, [ebx + 0x158]
jne 0x40c70b
mov eax, 1
cmp ecx, 0x40
jl 0x40c6f6
mov eax, ecx
shr eax, 2
jmp 0x40c701
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
mov ecx, edi
call fcn.0041aac0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*8], 9
mov dword [ecx + eax*8 + 4], 0
inc dword [edi + 8]
cmp dword [ebx + 8], 0
je 0x40c76f
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
jne 0x40c757
mov eax, 1
cmp ecx, 0x40
jl 0x40c742
mov eax, ecx
shr eax, 2
jmp 0x40c74d
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
mov ecx, edi
call fcn.0041aac0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*8], 6
mov dword [ecx + eax*8 + 4], 0
inc dword [edi + 8]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40c7c5
cmp dword [ebp - 0x44], 0
je 0x40c7c5
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
jne 0x40c7ad
mov eax, 1
cmp ecx, 0x40
jl 0x40c795
mov eax, ecx
shr eax, 2
jmp 0x40c7a0
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
mov ecx, edi
call fcn.0041aac0
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*8], 0xa
mov dword [ecx + eax*8 + 4], 0
inc dword [edi + 8]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x88], 0x54bd00
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.004097a0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0xb0], 0x54bd00
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x9c], 0x54bd00
mov byte [ebp - 4], 8
mov ecx, dword [esi + 0x18]
xor edi, edi
mov dword [ebp - 0x20], edi
call fcn.00409ee0
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
je 0x40cc6f
mov ecx, dword [esi + 0x18]
call fcn.00409ee0
cmp dword [ebp - 0x24], 0
mov ecx, dword [esi + 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xe8], eax
ja case.0x40c8c2.22
mov eax, dword [ebp - 0x18]
jb 0x40c8b6
cmp eax, 0x40000000
ja case.0x40c8c2.22
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x40c8c2.22
jmp dword [eax*4 + 0x40cf18]
mov byte [ebp - 0xe0], 0
lea eax, [ebp - 0x74]
push eax
push esi
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 9
call fcn.00409e40
xor esi, esi
cmp dword [ebx + 0x6c], esi
jle 0x40c908
mov edi, dword [ebp - 0x14]
mov edi, edi
mov eax, dword [ebx + 0x70]
mov ecx, dword [edi + 0x18]
mov eax, dword [eax + esi*4]
add eax, 0x10
push eax
call fcn.00409f90
inc esi
cmp esi, dword [ebx + 0x6c]
jl 0x40c8f0
mov byte [ebp - 4], 8
cmp byte [ebp - 0xe0], 0
je 0x40cb27
mov edi, dword [ebp - 0xe4]
push 1
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
dec eax
push eax
lea ecx, [edi + 4]
call dword [edx + 4]
cmp dword [edi + 0xc], 0
je 0x40c942
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi + 0x18], eax
mov byte [ebp - 0xe0], 0
jmp 0x40cb27
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xc8], 0x54bd00
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 0xa
push dword [ebx + 0x6c]
mov ecx, esi
call fcn.0040b6c0
mov byte [ebp - 0xd8], 0
lea eax, [ebp - 0x74]
push eax
push esi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xb
call fcn.00409e40
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0x40c9ff
jmp 0x40c9c0
mov eax, dword [ebx + 0x70]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebp - 0xbc]
mov al, byte [eax + ecx]
mov byte [ebx + 0x1f], al
test al, al
je 0x40c9f6
mov edx, dword [esi + 0x18]
mov esi, dword [edx + 8]
lea edi, [esi + 4]
cmp edi, dword [edx + 4]
ja 0x40cce8
mov eax, dword [edx]
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0x14]
mov dword [edx + 8], edi
mov dword [ebx + 8], eax
mov ebx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x40c9c0
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0xd8], 0
je 0x40ca3c
mov edi, dword [ebp - 0xdc]
push 1
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
dec eax
push eax
lea ecx, [edi + 4]
call dword [edx + 4]
cmp dword [edi + 0xc], 0
je 0x40ca35
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi + 0x18], eax
mov byte [ebp - 0xd8], 0
mov byte [ebp - 4], 8
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xc8]
push 0
mov dword [ebp - 0xc8], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0xbc]
call fcn.004ea37d
add esp, 4
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
jmp 0x40cb27
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040b610
mov ecx, dword [ebp - 0x80]
xor eax, eax
test ecx, ecx
je 0x40cabf
mov edx, dword [ebp - 0x7c]
lea esp, [esp]
cmp byte [edx + eax], 0
je 0x40cab7
inc edi
inc eax
cmp eax, ecx
jb 0x40cab0
mov dword [ebp - 0x20], edi
mov edx, edi
lea ecx, [ebp - 0xb0]
call fcn.004097a0
mov edx, edi
lea ecx, [ebp - 0x9c]
call fcn.004097a0
jmp 0x40cb27
lea eax, [ebp - 0xb0]
push eax
push edi
mov ecx, esi
call fcn.0040b610
jmp 0x40cb27
lea eax, [ebp - 0x9c]
push eax
push edi
mov ecx, esi
call fcn.0040b610
jmp 0x40cb27
lea eax, [ebx + 0xf0]
jmp 0x40cb18
lea eax, [ebx + 0x78]
jmp 0x40cb18
lea eax, [ebx + 0xa0]
jmp 0x40cb18
lea eax, [ebx + 0xc8]
push dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040b770
mov ecx, dword [ebx + 0x15c]
cmp dword [ebx + 0x160], ecx
lea esi, [ebx + 0x158]
jne 0x40cb61
mov eax, 1
cmp ecx, 0x40
jl 0x40cb4c
mov eax, ecx
shr eax, 2
jmp 0x40cb57
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
mov ecx, esi
call fcn.0041aac0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [ecx + eax*8], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax*8 + 4], edx
inc dword [esi + 8]
mov esi, dword [ebp - 0x14]
jmp 0x40cc1b
xorps xmm0, xmm0
movlpd qword [ebp - 0xf4], xmm0
test edx, edx
jb 0x40cc1e
ja 0x40cba2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40cc21
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xf4]
mov edi, edi
mov edx, dword [esi + 0x18]
mov esi, dword [edx + 8]
cmp esi, dword [edx + 4]
jae 0x40cce8
mov eax, dword [edx]
mov cl, byte [esi + eax]
lea eax, [esi + 1]
mov dword [edx + 8], eax
test cl, cl
jne 0x40cce8
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
add edi, 1
adc ebx, 0
cmp ebx, edx
jb 0x40cbb0
mov ecx, dword [ebp + 0x10]
ja 0x40cbeb
cmp edi, ecx
jb 0x40cbb0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
jmp 0x40cc21
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
sub eax, edx
cmp dword [ebp - 0x1c], 0
ja 0x40cce8
jb 0x40cc13
cmp dword [ebp + 0x10], eax
ja 0x40cce8
mov eax, dword [ebp + 0x10]
add eax, edx
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x130], 0
ja 0x40cc33
cmp byte [ebx + 0x131], 2
jbe 0x40cc57
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x10], 0
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0xe8]
cmp eax, ecx
jne 0x40cce8
cmp dword [ebp + 0x10], edx
jne 0x40cce8
mov ecx, dword [esi + 0x18]
call fcn.00409ee0
mov ecx, edx
mov dword [ebp - 0x18], eax
or eax, ecx
mov dword [ebp - 0x24], ecx
jne 0x40c882
xor ecx, ecx
xor esi, esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
test edi, edi
je 0x40cc95
mov edx, dword [ebp - 0x90]
cmp byte [edx + eax], cl
je 0x40cc8d
inc esi
inc eax
cmp eax, edi
jb 0x40cc87
mov dword [ebp - 0x24], esi
xor edi, edi
cmp dword [ebp + 0xc], ecx
jbe 0x40cd79
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
mov edx, dword [eax + edi*4]
mov eax, dword [ebp - 0x7c]
cmp byte [eax + edi], 0
sete al
mov byte [edx + 0x1c], al
test al, al
je 0x40cced
mov byte [edx + 0x1d], 0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp + 0x13], 0
mov eax, dword [ecx + ebx*8]
mov dword [edx], eax
mov eax, dword [ecx + ebx*8 + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x40]
inc ebx
mov eax, dword [eax + ebx*4 - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x54]
mov al, byte [eax + ebx - 1]
mov byte [edx + 0x1e], al
jmp 0x40cd1f
call fcn.00409d60
mov eax, dword [ebp - 0xa4]
cmp byte [eax + ecx], 0
sete al
mov byte [edx + 0x1d], al
mov eax, dword [ebp - 0x90]
inc ecx
mov al, byte [eax + ecx - 1]
mov byte [ebp + 0x13], al
mov dword [ebp - 0x20], ecx
mov dword [edx], 0
mov dword [edx + 4], 0
mov byte [edx + 0x1e], 0
test esi, esi
je 0x40cd6c
mov esi, dword [ebp + 8]
add esi, 0x118
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jne 0x40cd5a
mov eax, 1
cmp ecx, 0x40
jl 0x40cd45
mov eax, ecx
shr eax, 2
jmp 0x40cd50
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
mov ecx, esi
call fcn.0041aac0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax], dl
inc dword [esi + 8]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40cca0
mov byte [ebp - 4], 7
push dword [ebp - 0x94]
lea ecx, [ebp - 0x9c]
push 0
mov dword [ebp - 0x9c], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x90]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 6
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xb0]
push 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xb0], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0xa4]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 3
push dword [ebp - 0x80]
lea ecx, [ebp - 0x88]
push 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x88], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x7c]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x4c]
push 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x4c], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x40]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
push 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x60], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x54]
call fcn.004ea37d
add esp, 4
mov byte [ebp - 4], 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x38], 0x54b998
call dword [0x54b99c]
push dword [ebp - 0x2c]
call fcn.004ea37d
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x74], 0x54be50
mov dword [ebp - 4], 0xc
jmp 0x40c5c8