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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x30], eax
mov esi, edx
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x2c]
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
call fcn.00401250
test eax, eax
jne 0x403456
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
cmp edx, 2
jne 0x402a41
test ecx, ecx
jne 0x402a41
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.00401250
test eax, eax
jne 0x403456
mov eax, dword [ebp - 0x14]
mov ecx, esi
or eax, dword [ebp - 0x10]
je 0x402a2b
lea edx, [ebp - 0x54]
call fcn.00401250
test eax, eax
jne 0x403456
cmp dword [ebp - 0x50], 0
mov eax, dword [esi + 4]
ja 0x403451
mov ecx, dword [ebp - 0x54]
jb 0x402a05
cmp ecx, eax
ja 0x403451
add dword [esi], ecx
lea edx, [ebp - 0x14]
sub eax, ecx
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00401250
test eax, eax
je 0x4029d1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x2c]
call fcn.00401250
test eax, eax
jne 0x403456
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp edx, 3
jne 0x402af1
test ecx, ecx
jne 0x402af1
mov eax, dword [edi + 0x30]
xorps xmm0, xmm0
push ebx
mov dword [ebp - 0x8c], eax
mov edx, esi
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], ecx
push eax
push dword [edi + 0x3c]
mov dword [ebp - 0xb8], ecx
push dword [edi + 0x38]
mov dword [ebp - 0x94], ecx
mov ecx, dword [edi + 0x34]
push 8
push dword [ebp - 0x30]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x44]
movups xmmword [ebp - 0xb4], xmm0
movups xmmword [ebp - 0xa4], xmm0
call fcn.00402640
mov ecx, dword [ebp - 0xb8]
mov ebx, eax
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov edx, dword [ebp - 0x24]
mov dword [eax], ecx
lea ecx, [ebp - 0xbc]
call fcn.004010a0
test ebx, ebx
je 0x402ad9
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00401250
test eax, eax
jne 0x403456
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp edx, 4
jne 0x402b4c
test ecx, ecx
jne 0x402b4c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84]
mov edx, esi
push eax
mov eax, dword [ebp - 0x20]
lea ebx, [edi + 0x40]
push ebx
mov ecx, edi
push dword [eax]
push dword [ebp - 0x30]
push 0x40000000
call fcn.00402380
add esp, 0x18
test eax, eax
jne 0x403456
mov eax, dword [edi + 0x38]
lea edx, [ebp - 0x2c]
add dword [ebx], eax
mov ecx, esi
mov eax, dword [edi + 0x3c]
adc dword [ebx + 4], eax
call fcn.00401250
test eax, eax
jne 0x403456
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, edx
or eax, ecx
jne 0x402b65
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
cmp edx, 5
jne 0x403451
test ecx, ecx
jne 0x403451
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], ecx
mov ecx, esi
call fcn.004013b0
test eax, eax
jne 0x403456
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov ecx, esi
mov dword [edi + 0x48], eax
call fcn.00401250
test eax, eax
jne 0x403456
nop dword [eax]
mov ebx, dword [ebp - 0x2c]
mov eax, ebx
or eax, dword [ebp - 0x28]
je 0x402f10
lea edx, [ebp - 0x54]
mov ecx, esi
call fcn.00401250
test eax, eax
jne 0x403456
cmp dword [ebp - 0x50], 0
mov eax, dword [esi + 4]
ja 0x403451
mov ecx, dword [ebp - 0x54]
jb 0x402bea
cmp ecx, eax
ja 0x403451
cmp dword [ebp - 0x28], 0
ja case.0x402c0c.16
cmp ebx, 0x100
jae case.0x402c0c.16
add ebx, 0xfffffff2
cmp ebx, 7
ja case.0x402c0c.16
jmp dword [ebx*4 + 0x403468]
test eax, eax
je 0x403451
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x24], eax
mov dword [esi], eax
test dl, dl
jne 0x402c35
lea ebx, [ecx - 1]
jmp 0x402c62
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.004013b0
test eax, eax
jne 0x403456
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x44]
cmp ebx, dword [eax]
jae 0x403451
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + ebx*8]
mov ebx, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], ebx
test bl, 1
jne 0x403451
mov eax, dword [ebp - 0x34]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 0x7c], eax
test eax, eax
je 0x40343b
test ebx, ebx
jne 0x402c9b
mov dword [edi + 0x80], ebx
jmp 0x402cc2
mov eax, dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 0x80], eax
test eax, eax
je 0x40343b
push ebx
push dword [ebp - 0x24]
push eax
call fcn.0040f0f0
add esp, 0xc
mov edx, dword [edi + 0x7c]
xor eax, eax
mov ebx, dword [edi + 0x80]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [edx], eax
add edx, 4
test ecx, ecx
jne 0x402cea
mov edx, dword [ebp - 0x38]
mov ecx, edx
neg ecx
sbb ecx, ecx
and ecx, 0x10
jmp 0x402d4f
mov ecx, dword [ebp - 0x38]
cmp ecx, 2
jb 0x402ef8
cmp byte [ebx + ecx - 2], al
jne 0x402ef8
cmp byte [ebx + ecx - 1], al
jne 0x402ef8
nop word [eax + eax]
cmp eax, ecx
je 0x402ef8
add eax, ebx
cmp word [eax], 0
je 0x402d29
add eax, 2
cmp word [eax], 0
jne 0x402d20
sub eax, ebx
add eax, 2
mov ecx, eax
shr ecx, 1
mov dword [edx], ecx
add edx, 4
sub dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x38]
jne 0x402d10
mov edx, dword [ebp - 0x38]
xor ebx, ebx
cmp eax, edx
mov ecx, 0x10
cmove ecx, ebx
test ecx, ecx
jne 0x402efd
cmp byte [ebp - 0x16], cl
jne 0x402ed5
sub dword [esi + 4], edx
add dword [esi], edx
jmp 0x402ed5
mov ebx, dword [ebp - 0x34]
lea ecx, [ebx + 7]
shr ecx, 3
cmp ecx, eax
ja 0x403451
mov edx, dword [esi]
sub eax, ecx
mov dword [esi + 4], eax
mov dword [ebp - 0x48], edx
lea eax, [ecx + edx]
xor ecx, ecx
mov dword [esi], eax
mov dword [ebp - 0x3c], ecx
test ebx, ebx
je 0x402dce
mov eax, edx
mov edi, ecx
mov dword [ebp - 0x48], eax
nop word [eax + eax]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x402db2
movzx edi, byte [edx]
mov ecx, 8
dec ecx
mov eax, edi
shr eax, cl
inc edx
and eax, 1
add dword [ebp - 0x3c], eax
cmp dword [ebp - 0x24], 0
cmovne edx, dword [ebp - 0x58]
sub ebx, 1
jne 0x402da0
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x5c], 0
jmp 0x402ed5
mov ecx, dword [ebp - 0x3c]
add ecx, 7
shr ecx, 3
cmp ecx, eax
ja 0x403451
mov ebx, dword [esi]
sub eax, ecx
mov dword [esi + 4], eax
mov dword [ebp - 0x5c], ebx
lea eax, [ecx + ebx]
mov dword [esi], eax
jmp 0x402ed5
mov eax, dword [ebp - 0x1c]
lea ebx, [edi + 0x5c]
push dword [ebx]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebp - 0x1c]
push dword [ebx + 4]
mov dword [ebx], 0
push eax
mov eax, dword [eax + 4]
call eax
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov ecx, esi
push ebx
mov dword [ebx + 4], 0
call fcn.004014b0
add esp, 0x18
test eax, eax
jne 0x403456
mov eax, dword [esi + 4]
test eax, eax
je 0x403451
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [esi], eax
mov ecx, esi
je 0x402e8c
lea edx, [ebp - 0x40]
call fcn.004013b0
test eax, eax
jne 0x403456
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax]
jae 0x403451
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
push ebx
call fcn.00401580
add esp, 8
test eax, eax
jne 0x403456
jmp 0x402ed5
lea ecx, [edi + 0x64]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
push dword [eax]
push dword [ebp - 0x30]
push esi
call fcn.004027d0
add esp, 0x10
test eax, eax
jne 0x403456
jmp 0x402ed5
lea ecx, [edi + 0x6c]
jmp 0x402ea8
sub eax, ecx
add dword [esi], ecx
mov dword [esi + 4], eax
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00401250
test eax, eax
je 0x402bb0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
mov ecx, 0x10
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x84]
jne 0x403451
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00401250
test eax, eax
jne 0x403456
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
je 0x402f8e
lea edx, [ebp - 0x54]
mov ecx, esi
call fcn.00401250
test eax, eax
jne 0x403456
cmp dword [ebp - 0x50], 0
mov eax, dword [esi + 4]
ja 0x403451
mov ecx, dword [ebp - 0x54]
jb 0x402f68
cmp ecx, eax
ja 0x403451
add dword [esi], ecx
lea edx, [ebp - 0x2c]
sub eax, ecx
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00401250
test eax, eax
je 0x402f34
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
xor esi, esi
mov ebx, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x30], esi
lea eax, [eax*4 + 4]
mov dword [ebp - 0x38], esi
push eax
mov eax, dword [ebx]
push ebx
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x15], 0x80
call eax
add esp, 8
mov dword [edi + 0x74], eax
test eax, eax
je 0x40343b
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x402fe7
mov dword [edi + 0x78], esi
jmp 0x402ffe
shl eax, 2
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 8
mov dword [edi + 0x78], eax
test eax, eax
je 0x40343b
mov eax, dword [edi + 0x48]
lea eax, [eax*8 + 8]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 8
mov dword [edi + 0x4c], eax
test eax, eax
je 0x40343b
mov eax, dword [edi + 0x48]
add eax, 7
shr eax, 3
test eax, eax
jne 0x40302e
mov dword [edi + 0x50], esi
jmp 0x403042
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 8
mov dword [edi + 0x50], eax
test eax, eax
je 0x40343b
mov ebx, dword [edi + 0x48]
test ebx, ebx
jne 0x403051
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
jmp 0x40308c
lea eax, [ebx + 7]
shr eax, 3
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 0x54], eax
test eax, eax
je 0x40343b
lea eax, [ebx*4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 0x58], eax
test eax, eax
je 0x40343b
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4030ba
mov ecx, dword [ebp - 0x6c]
dec eax
mov dword [ebp - 0x68], eax
mov al, byte [ecx]
inc ecx
mov dword [ebp - 0x6c], ecx
test al, al
je 0x4030a9
mov dword [ebp - 0x3c], ecx
jmp 0x4030ba
mov eax, dword [ebp - 0x80]
add eax, 7
mov dword [ebp - 0x58], ecx
shr eax, 3
add eax, ecx
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x4033c9
mov ecx, dword [ebp - 0x28]
mov al, byte [ebp - 0x15]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
test al, al
jne 0x403105
mov eax, dword [edi + 0x50]
lea ecx, [ebx - 1]
mov bl, byte [ebp - 0x16]
shr ecx, 3
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0x80
mov byte [ecx + eax], bl
mov eax, dword [edi + 0x54]
mov bl, byte [ebp - 0x17]
mov byte [ebp - 0x17], 0
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x48], 0
mov eax, dword [edi + 0x4c]
mov dword [eax + ebx*8], edx
mov dword [eax + ebx*8 + 4], ecx
mov eax, dword [edi + 0x58]
mov dword [eax + ebx*4], 0
je 0x40318f
mov ecx, ebx
mov edx, 0x80
and ecx, 7
mov eax, ebx
sar edx, cl
mov ecx, dword [ebp - 0x48]
shr eax, 3
test byte [eax + ecx], dl
je 0x40318f
cmp dword [ebp - 0x5c], 0
je 0x40316d
mov ecx, dword [ebp - 0x60]
mov edx, 0x80
mov edi, dword [ebp - 0x5c]
and ecx, 7
sar edx, cl
mov ecx, dword [ebp - 0x60]
mov eax, ecx
shr eax, 3
test byte [eax + edi], dl
mov edi, dword [ebp - 0x64]
jne 0x403167
mov al, byte [ebp - 0x16]
or al, byte [ebp - 0x15]
mov byte [ebp - 0x16], al
inc ecx
mov dword [ebp - 0x60], ecx
jmp 0x403176
mov al, byte [ebp - 0x16]
or al, byte [ebp - 0x15]
mov byte [ebp - 0x16], al
cmp dword [ebp - 0x30], 0
jne 0x403218
mov eax, dword [edi + 0x78]
mov dword [eax + ebx*4], 0xffffffff
jmp 0x403391
cmp dword [ebp - 0x30], 0
jne 0x403218
nop dword [eax]
cmp esi, dword [edi + 4]
jae 0x403451
cmp dword [ebp - 0x7c], 0
mov eax, dword [edi + 0x74]
mov dword [eax + esi*4], ebx
mov eax, 1
mov dword [ebp - 0x38], eax
je 0x4031d3
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x7c]
call fcn.004013b0
test eax, eax
jne 0x403456
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x403218
mov eax, dword [edi + 0x20]
movzx ecx, byte [eax + esi]
mov eax, dword [edi + 0x1c]
add ecx, dword [eax + esi*4]
mov eax, dword [edi + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
add edx, ecx
mov dword [ebp - 0x20], edx
adc dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], eax
jb 0x403451
ja 0x403215
cmp edx, ecx
jb 0x403451
inc esi
jmp 0x4031a0
cmp dword [ebp - 0x48], 0
mov eax, dword [edi + 0x78]
mov dword [eax + ebx*4], esi
je 0x403241
mov ecx, ebx
mov edx, 0x80
and ecx, 7
mov eax, ebx
sar edx, cl
mov ecx, dword [ebp - 0x48]
shr eax, 3
test byte [eax + ecx], dl
jne 0x403391
sub dword [ebp - 0x30], 1
jne 0x40330a
mov eax, dword [edi + 0x20]
movzx ecx, byte [eax + esi]
mov eax, dword [edi + 0x1c]
add ecx, dword [eax + esi*4]
mov eax, dword [edi + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + esi*4]
mov edi, dword [ecx + eax*8]
mov dword [ebp - 0x44], edi
mov edi, dword [ecx + eax*8 + 4]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x64]
cmp dword [ebp - 0x40], ecx
jb 0x403451
ja 0x40329f
cmp edx, eax
jb 0x403451
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
add edx, eax
mov ecx, dword [ebp - 0x28]
adc ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x40]
jb 0x403451
ja 0x4032c6
cmp edx, eax
jb 0x403451
cmp dword [ebp - 0x38], 1
jne 0x403307
mov eax, dword [edi + 0xc]
test eax, eax
je 0x403307
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [edi + 0xc]
shr eax, 3
test byte [eax + ecx], dl
mov edx, dword [ebp - 0x20]
je 0x403304
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x58]
mov eax, dword [eax + esi*4]
mov dword [ecx + ebx*4], eax
mov al, byte [ebp - 0x17]
or al, byte [ebp - 0x15]
mov byte [ebp - 0x17], al
mov ecx, dword [ebp - 0x1c]
inc esi
jmp 0x403344
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x74]
call fcn.00401250
test eax, eax
jne 0x403456
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x50]
adc ecx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jb 0x403451
ja 0x403344
cmp edx, dword [ebp - 0x54]
jb 0x403451
mov al, byte [ebp - 0x15]
mov ah, byte [ebp - 0x17]
test ah, al
jne 0x40339a
cmp dword [ebp - 0x3c], 0
je 0x40339a
cmp dword [ebp - 0x58], 0
je 0x403374
mov eax, dword [ebp - 0x24]
mov edx, 0x80
mov ecx, eax
shr eax, 3
and ecx, 7
sar edx, cl
mov ecx, dword [ebp - 0x58]
test byte [eax + ecx], dl
je 0x40338e
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edi + 0x58]
mov eax, dword [edx]
add edx, 4
mov dword [ecx + ebx*4], eax
mov al, byte [ebp - 0x17]
or al, byte [ebp - 0x15]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x17], al
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x15]
inc ebx
shr al, 1
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x15], al
cmp ebx, dword [ebp - 0x34]
jb 0x4030d7
mov eax, dword [edi + 0x50]
lea ecx, [ebx - 1]
mov bl, byte [ebp - 0x16]
shr ecx, 3
mov byte [ecx + eax], bl
mov eax, dword [edi + 0x54]
mov bl, byte [ebp - 0x17]
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0x40]
jmp 0x4033cf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x30], 0
mov eax, dword [edi + 0x4c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + ebx*8], edx
mov dword [eax + ebx*8 + 4], ecx
jne 0x403451
mov eax, dword [edi + 0x74]
mov dword [eax + esi*4], ebx
cmp esi, dword [edi + 4]
jae 0x403416
nop dword [eax]
cmp dword [ebp - 0x7c], 0
je 0x403451
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x7c]
call fcn.004013b0
test eax, eax
jne 0x403456
cmp dword [ebp - 0x38], eax
jne 0x403451
mov eax, dword [edi + 0x74]
inc esi
mov dword [eax + esi*4], ebx
cmp esi, dword [edi + 4]
jb 0x4033f0
cmp dword [ebp - 0x7c], 0
je 0x402b52
mov eax, dword [ebp - 0x78]
neg eax
sbb eax, eax
and eax, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
mov eax, 0x10
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret