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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xac]
mov eax, edx
mov dword [esp + 0x9c], eax
mov ebp, ecx
cmp edi, 0xa
jae 0x4042d1
mov eax, 0xffffffec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov esi, dword [esp + 0xa8]
add eax, ebp
mov ebx, dword [esp + 0xb0]
mov ecx, esi
mov dword [esp + 0x88], eax
call fcn.00401080
movzx eax, ax
lea ecx, [esi + 2]
mov dword [esp + 0x1c], eax
call fcn.00401080
movzx eax, ax
lea ecx, [esi + 4]
mov dword [esp + 0x94], eax
call fcn.00401080
movzx eax, ax
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x98], eax
sub ecx, dword [esp + 0x94]
add esi, 6
mov eax, dword [esp + 0x1c]
sub ecx, eax
add eax, esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x90], eax
sub ecx, 6
add eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x9c]
add eax, 3
mov dword [esp + 0x14], ecx
shr eax, 2
lea edx, [eax + ebp]
lea esi, [edx + eax]
mov dword [esp + 0x30], edx
add eax, esi
mov dword [esp + 0x8c], esi
mov edi, eax
mov dword [esp + 0x84], eax
mov eax, dword [ebx]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0xac]
ja 0x4042c1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0xa0]
push eax
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x404e20
push dword [esp + 0x94]
mov edx, dword [esp + 0x94]
lea ecx, [esp + 0x4c]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x404e20
push dword [esp + 0x98]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x60]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x404e20
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x70]
mov edx, dword [esp + 0x2c]
push dword [esp + 0x14]
lea edx, [edx + eax]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x404e20
mov eax, dword [esp + 0x88]
mov edx, edi
add eax, 0xfffffffd
cmp edx, eax
jae 0x404627
mov eax, dword [esp + 0x18]
neg eax
and eax, 0x1f
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
movzx eax, word [ebx + edx*4 + 4]
mov word [ebp], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x38], eax
movzx eax, byte [ebx + edx*4 + 7]
mov ecx, dword [esp + 0x4c]
add ebp, eax
mov edx, dword [esp + 0x48]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x24]
movzx eax, word [ebx + edx*4 + 4]
mov word [ecx], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x4c], eax
movzx eax, byte [ebx + edx*4 + 7]
mov edx, dword [esp + 0x5c]
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
movzx eax, word [ebx + edx*4 + 4]
mov word [esi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x60], eax
movzx eax, byte [ebx + edx*4 + 7]
mov ecx, dword [esp + 0x74]
add esi, eax
mov edx, dword [esp + 0x70]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
movzx eax, word [ebx + edx*4 + 4]
mov word [edi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x74], eax
movzx eax, byte [ebx + edx*4 + 7]
mov ecx, dword [esp + 0x38]
add edi, eax
mov edx, dword [esp + 0x34]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
movzx eax, word [ebx + edx*4 + 4]
mov word [ebp], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x38], eax
movzx eax, byte [ebx + edx*4 + 7]
mov ecx, dword [esp + 0x4c]
add ebp, eax
mov edx, dword [esp + 0x48]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x24]
movzx eax, word [ebx + edx*4 + 4]
mov word [ecx], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x4c], eax
movzx eax, byte [ebx + edx*4 + 7]
mov edx, dword [esp + 0x5c]
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
movzx eax, word [ebx + edx*4 + 4]
mov word [esi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x60], eax
movzx eax, byte [ebx + edx*4 + 7]
mov ecx, dword [esp + 0x74]
add esi, eax
mov edx, dword [esp + 0x70]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
lea ecx, [esp + 0x70]
mov dword [esp + 0x28], esi
movzx eax, word [ebx + edx*4 + 4]
mov word [edi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x74], eax
movzx eax, byte [ebx + edx*4 + 7]
add edi, eax
mov dword [esp + 0x20], edi
call fcn.004011c0
neg eax
lea ecx, [esp + 0x5c]
sbb edi, edi
inc edi
call fcn.004011c0
neg eax
lea ecx, [esp + 0x48]
sbb esi, esi
inc esi
and esi, edi
call fcn.004011c0
xor edi, edi
lea ecx, [esp + 0x34]
test eax, eax
cmove edi, esi
call fcn.004011c0
mov esi, dword [esp + 0x28]
neg eax
sbb ecx, ecx
mov eax, dword [esp + 0x88]
inc ecx
add eax, 0xfffffffd
and ecx, edi
mov edi, dword [esp + 0x20]
cmp edi, eax
sbb eax, eax
test ecx, eax
mov eax, dword [esp + 0x1c]
jne 0x404450
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x30]
cmp ebp, eax
ja 0x4042c1
mov ecx, dword [esp + 0x8c]
cmp dword [esp + 0x24], ecx
ja 0x4042c1
cmp esi, edx
ja 0x4042c1
add eax, 0xfffffffd
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, dword [esp + 0x2c]
sbb eax, eax
neg eax
test eax, ecx
je 0x4046f6
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
neg edi
and edi, 0x1f
nop
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
lea edx, [ebx + eax*4]
movzx eax, word [edx + 4]
mov word [ebp], ax
movzx eax, byte [edx + 6]
mov ecx, dword [esp + 0x38]
add ecx, eax
movzx eax, byte [edx + 7]
mov edx, dword [esp + 0x34]
add ebp, eax
mov dword [esp + 0x38], ecx
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
lea ecx, [esp + 0x34]
movzx eax, word [ebx + edx*4 + 4]
mov word [ebp], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x38], eax
movzx eax, byte [ebx + edx*4 + 7]
add ebp, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x404680
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
add eax, 0xfffffffe
mov dword [esp + 0x1c], eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp dword [esp + 0x1c], ebp
sbb eax, eax
inc eax
test eax, ecx
je 0x404779
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
neg esi
and esi, 0x1f
nop word [eax + eax]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x34]
mov ax, word [ebx + edx*4 + 4]
mov word [ebp], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x38], eax
movzx eax, byte [ebx + edx*4 + 7]
add ebp, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp edi, ebp
sbb eax, eax
inc eax
test eax, ecx
jne 0x404730
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
cmp ebp, dword [esp + 0x1c]
ja 0x4047d4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
neg eax
mov edi, dword [esp + 0x1c]
and eax, 0x1f
mov esi, eax
mov eax, dword [esp + 0x34]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
lea ecx, [ebx + eax*4]
mov ax, word [ecx + 4]
mov word [ebp], ax
movzx eax, byte [ecx + 6]
mov edx, dword [esp + 0x38]
add edx, eax
movzx eax, byte [ecx + 7]
add ebp, eax
mov dword [esp + 0x38], edx
cmp ebp, edi
jbe 0x404792
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
jmp 0x4047d8
mov ecx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x30]
jae 0x40482b
mov edx, dword [esp + 0x18]
and ecx, 0x1f
mov eax, dword [esp + 0x34]
neg edx
and edx, 0x1f
shl eax, cl
mov ecx, edx
shr eax, cl
lea edx, [ebx + eax*4]
mov al, byte [edx + 4]
mov byte [ebp], al
cmp byte [edx + 7], 1
jne 0x40480d
movzx eax, byte [edx + 6]
add dword [esp + 0x38], eax
jmp 0x40482b
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x40482b
movzx eax, byte [edx + 6]
add ecx, eax
mov eax, 0x20
cmp ecx, 0x20
cmova ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x48]
add eax, 0xfffffffd
mov dword [esp + 0x2c], eax
call fcn.004011f0
mov ebp, dword [esp + 0x24]
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, dword [esp + 0x2c]
sbb eax, eax
neg eax
test eax, ecx
je 0x4048e6
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
neg edi
and edi, 0x1f
nop dword [eax + eax]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
lea edx, [ebx + eax*4]
movzx eax, word [edx + 4]
mov word [ebp], ax
movzx eax, byte [edx + 6]
mov ecx, dword [esp + 0x4c]
add ecx, eax
movzx eax, byte [edx + 7]
mov edx, dword [esp + 0x48]
add ebp, eax
mov dword [esp + 0x4c], ecx
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
lea ecx, [esp + 0x48]
movzx eax, word [ebx + edx*4 + 4]
mov word [ebp], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x4c], eax
movzx eax, byte [ebx + edx*4 + 7]
add ebp, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x404870
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x48]
add eax, 0xfffffffe
mov dword [esp + 0x24], eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp dword [esp + 0x24], ebp
sbb eax, eax
inc eax
test eax, ecx
je 0x404969
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
neg esi
and esi, 0x1f
nop word [eax + eax]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x48]
mov ax, word [ebx + edx*4 + 4]
mov word [ebp], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x4c], eax
movzx eax, byte [ebx + edx*4 + 7]
add ebp, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp edi, ebp
sbb eax, eax
inc eax
test eax, ecx
jne 0x404920
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
cmp ebp, dword [esp + 0x24]
ja 0x4049c4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
neg eax
mov edi, dword [esp + 0x24]
and eax, 0x1f
mov esi, eax
mov eax, dword [esp + 0x48]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
lea ecx, [ebx + eax*4]
mov ax, word [ecx + 4]
mov word [ebp], ax
movzx eax, byte [ecx + 6]
mov edx, dword [esp + 0x4c]
add edx, eax
movzx eax, byte [ecx + 7]
add ebp, eax
mov dword [esp + 0x4c], edx
cmp ebp, edi
jbe 0x404982
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
jmp 0x4049c8
mov ecx, dword [esp + 0x4c]
cmp ebp, dword [esp + 0x8c]
jae 0x404a1e
mov edx, dword [esp + 0x18]
and ecx, 0x1f
mov eax, dword [esp + 0x48]
neg edx
and edx, 0x1f
shl eax, cl
mov ecx, edx
shr eax, cl
lea edx, [ebx + eax*4]
mov al, byte [edx + 4]
mov byte [ebp], al
cmp byte [edx + 7], 1
jne 0x404a00
movzx eax, byte [edx + 6]
add dword [esp + 0x4c], eax
jmp 0x404a1e
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x20
jae 0x404a1e
movzx eax, byte [edx + 6]
add ecx, eax
mov eax, 0x20
cmp ecx, 0x20
cmova ecx, eax
mov dword [esp + 0x4c], ecx
mov ebp, dword [esp + 0x84]
lea ecx, [esp + 0x5c]
add ebp, 0xfffffffd
mov dword [esp + 0x90], ebp
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp esi, ebp
mov ebp, dword [esp + 0x18]
sbb eax, eax
neg eax
test eax, ecx
je 0x404ad4
mov edi, dword [esp + 0x90]
neg ebp
and ebp, 0x1f
nop dword [eax + eax]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
and ecx, 0x1f
shl eax, cl
mov ecx, ebp
shr eax, cl
lea edx, [ebx + eax*4]
movzx eax, word [edx + 4]
mov word [esi], ax
movzx eax, byte [edx + 6]
mov ecx, dword [esp + 0x60]
add ecx, eax
movzx eax, byte [edx + 7]
mov edx, dword [esp + 0x5c]
add esi, eax
mov dword [esp + 0x60], ecx
and ecx, 0x1f
shl edx, cl
mov ecx, ebp
shr edx, cl
lea ecx, [esp + 0x5c]
movzx eax, word [ebx + edx*4 + 4]
mov word [esi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x60], eax
movzx eax, byte [ebx + edx*4 + 7]
add esi, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp esi, edi
sbb eax, eax
neg eax
test eax, ecx
jne 0x404a60
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x5c]
add eax, 0xfffffffe
mov dword [esp + 0x30], eax
call fcn.004011f0
mov edx, dword [esp + 0x30]
neg eax
sbb ecx, ecx
inc ecx
cmp edx, esi
sbb eax, eax
inc eax
test eax, ecx
je 0x404b5c
mov dword [esp + 0x14], ebp
mov edi, edx
neg ebp
and ebp, 0x1f
nop dword [eax + eax]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
and ecx, 0x1f
shl edx, cl
mov ecx, ebp
shr edx, cl
lea ecx, [esp + 0x5c]
mov ax, word [ebx + edx*4 + 4]
mov word [esi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x60], eax
movzx eax, byte [ebx + edx*4 + 7]
add esi, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp edi, esi
sbb eax, eax
inc eax
test eax, ecx
jne 0x404b10
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
cmp esi, edx
ja 0x404ba8
neg ebp
and ebp, 0x1f
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
and ebp, 0x1f
mov ecx, ebp
shl eax, cl
mov ecx, edi
shr eax, cl
lea ecx, [ebx + eax*4]
mov ax, word [ecx + 4]
mov word [esi], ax
movzx eax, byte [ecx + 6]
mov ebp, dword [esp + 0x60]
add ebp, eax
movzx eax, byte [ecx + 7]
add esi, eax
mov dword [esp + 0x60], ebp
cmp esi, edx
jbe 0x404b71
mov edi, dword [esp + 0x20]
jmp 0x404bac
mov ebp, dword [esp + 0x60]
cmp esi, dword [esp + 0x84]
jae 0x404c03
mov edx, dword [esp + 0x18]
and ebp, 0x1f
mov eax, dword [esp + 0x5c]
neg edx
and edx, 0x1f
mov ecx, ebp
shl eax, cl
mov ecx, edx
shr eax, cl
lea edx, [ebx + eax*4]
mov al, byte [edx + 4]
mov byte [esi], al
cmp byte [edx + 7], 1
jne 0x404be5
movzx eax, byte [edx + 6]
add dword [esp + 0x60], eax
jmp 0x404c03
mov ecx, dword [esp + 0x60]
cmp ecx, 0x20
jae 0x404c03
movzx eax, byte [edx + 6]
add ecx, eax
mov eax, 0x20
cmp ecx, 0x20
cmova ecx, eax
mov dword [esp + 0x60], ecx
mov ebp, dword [esp + 0x88]
lea ecx, [esp + 0x70]
add ebp, 0xfffffffd
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp edi, ebp
sbb eax, eax
neg eax
test eax, ecx
je 0x404c9c
mov esi, dword [esp + 0x18]
neg esi
and esi, 0x1f
nop
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
and ecx, 0x1f
shl eax, cl
mov ecx, esi
shr eax, cl
lea edx, [ebx + eax*4]
movzx eax, word [edx + 4]
mov word [edi], ax
movzx eax, byte [edx + 6]
mov ecx, dword [esp + 0x74]
add ecx, eax
movzx eax, byte [edx + 7]
mov edx, dword [esp + 0x70]
add edi, eax
mov dword [esp + 0x74], ecx
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x70]
movzx eax, word [ebx + edx*4 + 4]
mov word [edi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x74], eax
movzx eax, byte [ebx + edx*4 + 7]
add edi, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp edi, ebp
sbb eax, eax
neg eax
test eax, ecx
jne 0x404c30
mov esi, dword [esp + 0x88]
lea ecx, [esp + 0x70]
mov ebp, dword [esp + 0x18]
add esi, 0xfffffffe
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp esi, edi
sbb eax, eax
inc eax
test eax, ecx
je 0x404d14
mov dword [esp + 0x14], ebp
neg ebp
and ebp, 0x1f
nop word [eax + eax]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
and ecx, 0x1f
shl edx, cl
mov ecx, ebp
shr edx, cl
lea ecx, [esp + 0x70]
mov ax, word [ebx + edx*4 + 4]
mov word [edi], ax
movzx eax, byte [ebx + edx*4 + 6]
add dword [esp + 0x74], eax
movzx eax, byte [ebx + edx*4 + 7]
add edi, eax
call fcn.004011f0
neg eax
sbb ecx, ecx
inc ecx
cmp esi, edi
sbb eax, eax
inc eax
test eax, ecx
jne 0x404cd0
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
cmp edi, esi
ja 0x404d5a
neg ebp
and ebp, 0x1f
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x70]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebp
shr eax, cl
lea ecx, [ebx + eax*4]
mov ax, word [ecx + 4]
mov word [edi], ax
movzx eax, byte [ecx + 6]
mov edx, dword [esp + 0x74]
add edx, eax
movzx eax, byte [ecx + 7]
add edi, eax
mov dword [esp + 0x74], edx
cmp edi, esi
jbe 0x404d25
mov ebp, dword [esp + 0x18]
cmp edi, dword [esp + 0x88]
jae 0x404da7
mov eax, dword [esp + 0x70]
and edx, 0x1f
neg ebp
mov ecx, edx
shl eax, cl
and ebp, 0x1f
mov ecx, ebp
shr eax, cl
lea ecx, [ebx + eax*4]
mov al, byte [ecx + 4]
mov byte [edi], al
cmp byte [ecx + 7], 1
mov edx, dword [esp + 0x74]
jne 0x404d91
movzx eax, byte [ecx + 6]
add edx, eax
jmp 0x404da7
cmp edx, 0x20
jae 0x404da7
movzx eax, byte [ecx + 6]
add edx, eax
mov eax, 0x20
cmp edx, 0x20
cmova edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jne 0x404dbf
cmp dword [esp + 0x38], 0x20
jne 0x404dbf
mov edi, 1
jmp 0x404dc1
xor edi, edi
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x54]
jne 0x404dd9
cmp dword [esp + 0x4c], 0x20
jne 0x404dd9
mov ecx, 1
jmp 0x404ddb
xor ecx, ecx
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
jne 0x404df3
cmp dword [esp + 0x60], 0x20
jne 0x404df3
mov esi, 1
jmp 0x404df5
xor esi, esi
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x7c]
jne 0x404e09
cmp edx, 0x20
jne 0x404e09
lea eax, [edx - 0x1f]
jmp 0x404e0b
xor eax, eax
and ecx, edi
and ecx, eax
mov eax, dword [esp + 0x9c]
test esi, ecx
mov ecx, 0xffffffec
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret