Function at 0x40fd40
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov dword [esp + 0x60], 6
mov ebp, dword [esi + 0x54]
mov ebx, dword [esi + 0x28]
add ebp, 2
lea edx, [esi + 0x9324]
mov dword [esp + 0x14], ebp
test ebp, ebp
jle 0x40fd83
mov ecx, ebp
mov eax, 0xf0f0f0f
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x60]
add edx, 0x102
dec eax
mov dword [esp + 0x60], eax
jne 0x40fd66
mov eax, dword [esi + 0x274]
test eax, eax
jg 0x40fdab
push 0xbb9
call fcn.0040f840
add esp, 4
mov eax, dword [esi + 0x274]
cmp eax, 0xc8
jge 0x40fdc2
mov dword [esp + 0x10], 2
jmp 0x40fdf5
cmp eax, 0x258
jge 0x40fdd3
mov dword [esp + 0x10], 3
jmp 0x40fdf5
cmp eax, 0x4b0
jge 0x40fde4
mov dword [esp + 0x10], 4
jmp 0x40fdf5
xor ecx, ecx
cmp eax, 0x960
setge cl
add ecx, 5
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
xor edx, edx
mov edi, ecx
cmp ecx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], edx
jle 0x40fee5
add ecx, 0x91
mov dword [esp + 0x18], edx
mov edx, ecx
shl edx, 7
add edx, ecx
lea ecx, [esi + edx*2]
mov dword [esp + 0x1c], ecx
cdq
idiv edi
mov edx, dword [esp + 0x60]
lea ecx, [edx - 1]
xor edx, edx
test eax, eax
jle 0x40fe58
dec ebp
lea edi, [esi + ecx*4 + 0x278]
cmp ecx, ebp
jge 0x40fe50
add edx, dword [edi + 4]
add edi, 4
inc ecx
cmp edx, eax
jl 0x40fe41
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
cmp ecx, dword [esp + 0x60]
jle 0x40fe88
cmp edi, dword [esp + 0x10]
je 0x40fe88
cmp edi, 1
je 0x40fe88
mov eax, dword [esp + 0x18]
and eax, 0x80000001
jns 0x40fe79
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x40fe88
mov eax, dword [esi + ecx*4 + 0x278]
sub edx, eax
dec ecx
xor eax, eax
test ebp, ebp
jle 0x40feb3
cmp eax, dword [esp + 0x60]
jl 0x40fea2
cmp eax, ecx
jg 0x40fea2
mov ebp, dword [esp + 0x1c]
mov byte [eax + ebp], 0
jmp 0x40feaa
mov ebp, dword [esp + 0x1c]
mov byte [eax + ebp], 0xf
mov ebp, dword [esp + 0x14]
inc eax
cmp eax, ebp
jl 0x40fe8e
mov eax, dword [esp + 0x18]
dec edi
inc eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
sub eax, 0x102
inc ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov dword [esp + 0x60], ecx
test edi, edi
mov dword [esp + 0x24], eax
jg 0x40fe29
mov dword [esp + 0x30], 4
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x40ff2c
mov ecx, ebp
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x14]
lea edx, [esi + 0xb160]
rep stosd dword es:[edi], eax
test ebp, ebp
jle 0x40ff19
mov ecx, ebp
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
add edx, 0x408
dec eax
mov dword [esp + 0x60], eax
jne 0x40ff0d
jmp 0x40ff30
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x10], 6
jne 0x40ffa1
test ebp, ebp
jle 0x40ffa1
mov ebp, 0xffff6cdc
lea eax, [esi + 0x9324]
lea edi, [esi + 0xc994]
sub ebp, esi
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0x102]
mov dl, byte [eax]
shl ecx, 0x10
or ecx, edx
xor edx, edx
mov dword [edi - 4], ecx
mov dl, byte [eax + 0x204]
xor ecx, ecx
add edi, 0x10
mov cl, byte [eax + 0x306]
shl ecx, 0x10
or ecx, edx
xor edx, edx
mov dword [edi - 0x10], ecx
mov dl, byte [eax + 0x408]
xor ecx, ecx
mov cl, byte [eax + 0x50a]
shl ecx, 0x10
or ecx, edx
mov edx, dword [esp + 0x14]
inc eax
mov dword [edi - 0xc], ecx
lea ecx, [eax + ebp]
cmp ecx, edx
jl 0x40ff4e
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ebp
mov ecx, dword [esi + 0x274]
mov edx, dword [esp + 0x10]
cmp ebp, ecx
jge 0x410e4f
lea eax, [ebp + 0x31]
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
jl 0x40ffd3
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
test edx, edx
jle 0x40ffec
mov ecx, edx
xor eax, eax
lea edi, [esp + 0x34]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
cmp edx, 6
jne 0x410987
mov ecx, eax
sub ecx, ebp
inc ecx
cmp ecx, 0x32
jne 0x410987
mov cx, word [ebx + ebp*2]
mov di, word [ebx + ebp*2 + 2]
and ecx, 0xffff
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
lea edx, [ecx + 0xc99]
shl edx, 4
shl edi, 4
mov eax, dword [edx + esi]
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl ecx, 4
shl edi, 4
lea edx, [ecx + esi]
add edi, esi
mov ecx, dword [edx + 0xc994]
mov edx, dword [edx + 0xc998]
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 4]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 6]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 8]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0xa]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0xc]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0xe]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x10]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x12]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x14]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x16]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x18]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x1a]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x1c]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x1e]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x20]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x22]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x24]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x26]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x28]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x2a]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x2c]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x2e]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x30]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x32]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x34]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x36]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x38]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x3a]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x3c]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x3e]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x40]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x42]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x44]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x46]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x48]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x4a]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x4c]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x4e]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x50]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x52]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x54]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x56]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x58]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x5a]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x5c]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x5e]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov di, word [ebx + ebp*2 + 0x60]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov edi, dword [esp + 0x20]
mov di, word [ebx + edi*2]
and edi, 0xffff
mov dword [esp + 0x60], edi
add edi, 0xc99
shl edi, 4
add eax, dword [edi + esi]
mov edi, dword [esp + 0x60]
shl edi, 4
add edi, esi
mov word [esp + 0x34], ax
shr eax, 0x10
add ecx, dword [edi + 0xc994]
add edx, dword [edi + 0xc998]
mov word [esp + 0x36], ax
mov word [esp + 0x38], cx
mov word [esp + 0x3c], dx
shr ecx, 0x10
shr edx, 0x10
mov word [esp + 0x3a], cx
mov word [esp + 0x3e], dx
jmp 0x4109ec
cmp ebp, eax
jg 0x4109f0
lea eax, [ebx + ebp*2]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
sub eax, ebp
inc eax
mov dword [esp + 0x24], eax
jmp 0x4109a3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
test edx, edx
mov cx, word [ecx]
jle 0x4109da
mov edi, dword [esp + 0x10]
and ecx, 0xffff
lea eax, [esp + 0x34]
lea ecx, [ecx + esi + 0x9324]
movzx dx, byte [ecx]
add word [eax], dx
add ecx, 0x102
add eax, 2
dec edi
jne 0x4109c3
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
add edx, 2
dec eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], eax
jne 0x41099f
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
xor edi, edi
test edx, edx
mov dword [esp + 0x24], 0x3b9ac9ff
jle 0x410a34
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov cx, word [edx]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jge 0x410a20
mov dword [esp + 0x24], ecx
mov eax, edi
mov edx, dword [esp + 0x60]
inc edi
add edx, 2
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x10]
cmp edi, edx
jl 0x410a09
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add edi, ecx
mov ecx, dword [esp + eax*4 + 0x44]
inc ecx
mov dword [esp + 0x28], edi
mov dword [esp + eax*4 + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov byte [ecx + esi + 0x680], al
inc ecx
cmp edx, 6
mov dword [esp + 0x1c], ecx
jne 0x410e11
mov edx, dword [esp + 0x18]
sub edx, ebp
inc edx
cmp edx, 0x32
jne 0x410e11
lea ecx, [eax + 0x2c]
mov eax, ecx
shl eax, 7
add eax, ecx
xor ecx, ecx
mov cx, word [ebx + ebp*2]
shl eax, 1
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 2]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 4]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 6]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 8]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0xa]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0xc]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0xe]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x10]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x12]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x14]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x16]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x18]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x1a]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x1c]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x1e]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x20]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x22]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x24]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x26]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x28]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x2a]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x2c]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x2e]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x30]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x32]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x34]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x36]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x38]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x3a]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x3c]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x3e]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x40]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x42]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x44]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x46]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x48]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x4a]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x4c]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x4e]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x50]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x52]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x54]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x56]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [esi + edx*4]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x58]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x5a]
add edx, eax
lea ecx, [esi + edx*4]
mov edx, dword [ecx]
inc edx
mov dword [ecx], edx
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x5c]
add ecx, eax
mov edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc edx
mov dword [ecx], edx
xor edx, edx
mov dx, word [ebx + ebp*2 + 0x5e]
add edx, eax
mov edi, dword [esi + edx*4]
lea ecx, [esi + edx*4]
inc edi
xor edx, edx
mov dword [ecx], edi
xor ecx, ecx
mov cx, word [ebx + ebp*2 + 0x60]
add ecx, eax
mov ebp, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
inc ebp
mov dword [ecx], ebp
mov ecx, dword [esp + 0x20]
mov dx, word [ebx + ecx*2]
add edx, eax
mov ecx, dword [esi + edx*4]
lea eax, [esi + edx*4]
mov edx, dword [esp + 0x18]
inc ecx
mov dword [eax], ecx
lea ebp, [edx + 1]
jmp 0x40ffab
cmp ebp, dword [esp + 0x18]
jg 0x410e43
lea ecx, [eax + 0x2c]
lea edx, [ebx + ebp*2]
mov eax, ecx
shl eax, 7
add eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebp
shl eax, 1
inc ecx
xor edi, edi
mov di, word [edx]
add edx, 2
add edi, eax
mov ebp, dword [esi + edi*4]
lea edi, [esi + edi*4]
inc ebp
dec ecx
mov dword [edi], ebp
jne 0x410e2d
mov edx, dword [esp + 0x18]
lea ebp, [edx + 1]
jmp 0x40ffab
cmp dword [esi + 0x268], 3
jl 0x410e5e
test edx, edx
jle 0x410e9a
jmp 0x410e62
test edx, edx
jle 0x410e9a
lea ebp, [esi + 0x9324]
lea edi, [esi + 0xb160]
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x14]
push 0x14
push eax
push edi
push ebp
call fcn.004132c0
mov eax, dword [esp + 0x70]
add esp, 0x10
add edi, 0x408
add ebp, 0x102
dec eax
mov dword [esp + 0x60], eax
jne 0x410e72
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x40feed
mov ecx, dword [esp + 0x10]
cmp ecx, 8
jl 0x410ec3
push 0xbba
call fcn.0040f840
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, dword [esp + 0x1c]
cmp ebp, 0x8000
jge 0x410ed7
cmp ebp, 0x4652
jle 0x410eec
push 0xbbb
call fcn.0040f840
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x410efb
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, ecx
jl 0x410ef2
xor edi, edi
test ebp, ebp
jle 0x410f45
mov al, byte [esp + 0x28]
mov cl, byte [esi + edi + 0x680]
mov dword [esp + 0x30], 0
mov byte [esp + 0x60], cl
cmp cl, al
mov ecx, dword [esp + 0x30]
je 0x410f31
inc ecx
mov dl, al
mov al, byte [esp + ecx + 0x28]
mov byte [esp + ecx + 0x28], dl
cmp byte [esp + 0x60], al
jne 0x410f20
mov byte [edi + esi + 0x4cd2], cl
inc edi
cmp edi, ebp
mov byte [esp + 0x28], al
jl 0x410f05
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x410ffc
lea edx, [esi + 0x9930]
lea eax, [esi + 0x9324]
mov dword [esp + 0x24], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
mov ebp, 0x20
test eax, eax
jle 0x410fb8
mov edx, dword [esp + 0x60]
xor eax, eax
mov al, byte [edx + ecx]
cmp eax, edi
jle 0x410f85
mov edi, eax
cmp eax, ebp
jge 0x410f8b
mov ebp, eax
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, eax
jl 0x410f7a
cmp edi, 0x14
jle 0x410fa6
push 0xbbc
call fcn.0040f840
add esp, 4
cmp ebp, 1
jge 0x410fb8
push 0xbbd
call fcn.0040f840
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x24]
push eax
push edi
push ebp
push ecx
push edx
call fcn.004135d0
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
add esp, 0x14
add edx, 0x102
add ecx, 0x408
dec eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
jne 0x410f65
lea ebp, [esi + 0x58]
xor ecx, ecx
mov edx, ebp
mov byte [esp + ecx + 0x34], 0
xor eax, eax
cmp byte [eax + edx], 0
je 0x411015
mov byte [esp + ecx + 0x34], 1
inc eax
cmp eax, 0x10
jl 0x41100a
inc ecx
add edx, 0x10
cmp ecx, 0x10
jl 0x411003
xor edi, edi
mov al, byte [esp + edi + 0x34]
test al, al
je 0x411032
push 1
jmp 0x411034
push 0
push 1
push esi
call fcn.0040fa30
add esp, 0xc
inc edi
cmp edi, 0x10
jl 0x411026
xor eax, eax
mov dword [esp + 0x60], eax
mov cl, byte [esp + eax + 0x34]
test cl, cl
je 0x411076
xor edi, edi
cmp byte [edi + ebp], 0
je 0x41105f
push 1
jmp 0x411061
push 0
push 1
push esi
call fcn.0040fa30
add esp, 0xc
inc edi
cmp edi, 0x10
jl 0x411055
mov eax, dword [esp + 0x60]
inc eax
add ebp, 0x10
cmp eax, 0x10
mov dword [esp + 0x60], eax
jl 0x41104b
mov edi, dword [esp + 0x10]
push edi
push 3
push esi
call fcn.0040fa30
mov ebp, dword [esp + 0x28]
push ebp
push 0xf
push esi
call fcn.0040fa30
add esp, 0x18
test ebp, ebp
jle 0x4110f3
mov eax, 0xffffb32e
lea edi, [esi + 0x4cd2]
sub eax, esi
mov dword [esp + 0x60], eax
mov al, byte [edi]
xor ebp, ebp
test al, al
jbe 0x4110d3
push 1
push 1
push esi
call fcn.0040fa30
xor eax, eax
add esp, 0xc
mov al, byte [edi]
inc ebp
cmp ebp, eax
jl 0x4110bd
push 0
push 1
push esi
call fcn.0040fa30
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
add esp, 0xc
inc edi
add ecx, edi
cmp ecx, eax
jl 0x4110b5
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4111a0
lea eax, [esi + 0x9324]
mov dword [esp + 0x28], edi
mov dword [esp + 0x60], eax
xor edx, edx
mov dl, byte [eax]
mov edi, edx
push edi
push 5
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jle 0x411184
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x30], eax
xor ecx, ecx
mov cl, byte [ebp]
cmp edi, ecx
jge 0x41114b
push 2
push 2
push esi
call fcn.0040fa30
xor edx, edx
add esp, 0xc
mov dl, byte [ebp]
inc edi
cmp edi, edx
jl 0x411134
xor eax, eax
mov al, byte [ebp]
cmp edi, eax
jle 0x41116b
push 3
push 2
push esi
call fcn.0040fa30
xor ecx, ecx
add esp, 0xc
mov cl, byte [ebp]
dec edi
cmp edi, ecx
jg 0x411154
push 0
push 1
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x3c]
add esp, 0xc
inc ebp
dec eax
mov dword [esp + 0x30], eax
jne 0x41112b
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
add eax, 0x102
dec ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], ecx
jne 0x411109
xor ecx, ecx
xor ebp, ebp
lea eax, [esi + 0x680]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x274]
cmp ebp, eax
jge 0x411943
lea edi, [ebp + 0x31]
cmp edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
jl 0x4111da
lea edi, [eax - 1]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
xor edx, edx
mov dl, byte [ecx + esi + 0x680]
cmp edx, eax
jl 0x4111f8
push 0xbbe
call fcn.0040f840
add esp, 4
cmp dword [esp + 0x10], 6
jne 0x4118c4
mov eax, edi
sub eax, ebp
inc eax
cmp eax, 0x32
jne 0x4118c4
mov ecx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ecx + esi + 0x680]
lea ecx, [eax + 0x92]
add eax, 0x26
mov edx, ecx
shl edx, 7
add edx, ecx
mov ecx, eax
shl ecx, 7
lea edi, [esi + edx*2]
mov edx, dword [esp + 0x60]
add ecx, eax
mov ax, word [ebx + edx*2]
xor edx, edx
lea ebp, [esi + ecx*8]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 2]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
xor edx, edx
mov ax, word [ebx + eax*2 + 4]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 6]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
xor edx, edx
mov ax, word [ebx + eax*2 + 8]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0xa]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
mov ax, word [ebx + eax*2 + 0xc]
and eax, 0xffff
xor edx, edx
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0xe]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x10]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x12]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x14]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x16]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
xor edx, edx
mov ax, word [ebx + eax*2 + 0x18]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x1a]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
mov ax, word [ebx + eax*2 + 0x1c]
and eax, 0xffff
xor edx, edx
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x1e]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x20]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x22]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
xor edx, edx
mov ax, word [ebx + eax*2 + 0x24]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x26]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x28]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x2a]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
mov ax, word [ebx + eax*2 + 0x2c]
and eax, 0xffff
xor edx, edx
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x2e]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
xor edx, edx
mov ax, word [ebx + eax*2 + 0x30]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x32]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x34]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x36]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x38]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x3a]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
mov ax, word [ebx + eax*2 + 0x3c]
and eax, 0xffff
xor edx, edx
mov ecx, dword [ebp + eax*4]
push ecx
mov dl, byte [edi + eax]
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x3e]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x40]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x42]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x44]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x46]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
xor edx, edx
mov ax, word [ebx + eax*2 + 0x48]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x4a]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
mov ax, word [ebx + eax*2 + 0x4c]
and eax, 0xffff
xor edx, edx
mov ecx, dword [ebp + eax*4]
push ecx
mov dl, byte [edi + eax]
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x4e]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x50]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x52]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
xor edx, edx
mov ax, word [ebx + eax*2 + 0x54]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x56]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x78]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x58]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x84]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x5a]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x90]
mov ax, word [ebx + eax*2 + 0x5c]
and eax, 0xffff
xor edx, edx
mov ecx, dword [ebp + eax*4]
push ecx
mov dl, byte [edi + eax]
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x9c]
xor edx, edx
mov ax, word [ebx + eax*2 + 0x5e]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0xa8]
add esp, 0x48
xor edx, edx
mov ax, word [ebx + eax*2 + 0x60]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x2c]
xor edx, edx
mov ax, word [ebx + eax*2]
and eax, 0xffff
mov ecx, dword [ebp + eax*4]
mov dl, byte [edi + eax]
push ecx
push edx
push esi
call fcn.0040fa30
add esp, 0x18
jmp 0x411921
cmp ebp, edi
jg 0x411925
mov eax, dword [esp + 0x18]
lea edi, [ebx + ebp*2]
sub eax, ebp
inc eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [eax]
xor eax, eax
mov ax, word [edi]
lea edx, [ecx + 0x26]
add ecx, 0x92
mov ebp, edx
shl ebp, 7
add ebp, edx
lea edx, [eax + ebp*2]
mov edx, dword [esi + edx*4]
push edx
mov edx, ecx
shl edx, 7
add edx, ecx
xor ecx, ecx
lea eax, [eax + edx*2]
mov cl, byte [eax + esi]
push ecx
push esi
call fcn.0040fa30
mov eax, dword [esp + 0x6c]
add esp, 0xc
add edi, 2
dec eax
mov dword [esp + 0x60], eax
jne 0x4118d6
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc ecx
lea ebp, [edi + 1]
inc eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jmp 0x4111b6
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp ecx, eax
pop ebx
je 0x41195c
push 0xbbf
call fcn.0040f840
add esp, 4
add esp, 0x4c
ret