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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x32a2c]
mov ecx, dword [ebp + 0x32a28]
cmp ecx, eax
je 0x408126
lea ecx, [eax + eax*4]
pop edi
pop esi
mov edx, dword [ebp + ecx*8 + 0x38]
sub edx, eax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov eax, dword [ebp + 0x32a2c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x98]
mov edx, dword [ebp + ecx*8 + 0x3c]
mov dword [eax], edx
mov eax, dword [ebp + 0x32a2c]
lea ecx, [eax + eax*4]
xor eax, eax
mov edx, dword [ebp + ecx*8 + 0x38]
mov dword [ebp + 0x32a2c], edx
pop ebp
pop ebx
add esp, 0x88
ret 0xc
mov al, byte [ebp + 0x32a30]
xor ebx, ebx
test al, al
mov dword [ebp + 0x32a2c], ebx
mov dword [ebp + 0x32a28], ebx
jne 0x40815b
lea eax, [esp + 0x44]
mov ecx, ebp
push eax
call fcn.00409130
cmp eax, ebx
je 0x40816c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc
mov ecx, dword [ebp + 0x32a20]
mov byte [ebp + 0x32a30], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
lea edi, [ebp + 0x14]
mov eax, dword [edi]
mov ecx, dword [ebp + 0x28028]
push 0x111
lea esi, [ebx*4]
mov edx, dword [ecx]
push eax
push 0xffffffffffffffff
push ecx
mov dword [esp + esi + 0x64], eax
call dword [edx + 0x1c]
test ebx, ebx
mov dword [esp + esi + 0x88], eax
je 0x4081b0
mov ecx, dword [esp + 0x28]
cmp eax, dword [esp + ecx + 0x88]
jbe 0x4081b8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
inc ebx
add edi, 4
cmp ebx, 4
jl 0x408177
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x32a1c]
mov ecx, dword [esp + edx*4 + 0x88]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jbe 0x408204
mov eax, dword [esp + 0xa0]
mov dword [eax], edx
mov eax, dword [esp + 0xa4]
mov dword [eax], ecx
dec ecx
push ecx
mov ecx, ebp
call fcn.00407fe0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0xc
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jbe 0x408244
mov eax, dword [ebp + eax*4 + 0x325d0]
mov edx, dword [esp + 0xa0]
add eax, 4
dec ecx
push ecx
mov ecx, ebp
mov dword [edx], eax
call fcn.00407fe0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0xc
mov eax, dword [ebp + 0x28028]
push 0xffffffffffffffff
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov edi, dword [ebp + 0x14]
mov byte [esp + 0x28], al
mov al, byte [ebp + 0x10]
mov edx, 0xfffffffe
mov byte [ebp + 0x28], al
mov eax, dword [ebp + 0x28028]
sub edx, edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov ebx, dword [ebp + 0x33680]
mov edi, dword [esp + 0x9c]
mov byte [esp + 0x40], al
mov al, byte [ebp + 0x10]
mov ecx, eax
and ebx, edi
and ecx, 0xff
mov edi, dword [ebp + 0x325cc]
shl ecx, 4
add ecx, ebx
mov dword [esp + 0x38], ebx
mov edx, dword [ebp + ecx*4 + 0x28060]
mov cl, byte [ebp + 0x11]
shr edx, 2
cmp al, 7
mov eax, dword [esp + 0x28]
mov esi, dword [edx*4 + 0x4112b0]
mov byte [esp + 0x48], cl
mov ecx, dword [esp + 0x40]
push eax
setae dl
mov byte [esp + 0x28], dl
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x325c4]
push ecx
push eax
mov eax, dword [esp + 0x54]
mov cl, 8
and eax, 0xff
sub cl, dl
shr eax, cl
mov ecx, dword [esp + 0xa8]
and edi, ecx
mov ecx, edx
shl edi, cl
add eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325c0]
shl ecx, 0xa
add ecx, eax
call fcn.004072d0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
add eax, esi
xor edi, edi
mov dword [ebp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0x64], 0xffffffff
mov byte [ebp + 0x51], 0
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], ecx
mov cl, byte [ebp + 0x10]
mov esi, 0x800
mov eax, ecx
and eax, 0xff
mov edx, eax
shl edx, 4
add edx, ebx
sub esi, dword [ebp + edx*4 + 0x28060]
shr esi, 2
mov esi, dword [esi*4 + 0x4112b0]
mov edx, 0x800
sub edx, dword [ebp + eax*4 + 0x28360]
shr edx, 2
mov eax, dword [edx*4 + 0x4112b0]
mov dl, byte [esp + 0x28]
add eax, esi
cmp byte [esp + 0x40], dl
mov dword [esp + 0x1c], eax
jne 0x4083d7
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x24]
and ecx, 0xff
mov edx, ecx
shl edx, 4
add edx, ebx
mov edx, dword [ebp + edx*4 + 0x28420]
shr edx, 2
mov dword [esp + 0x24], edx
mov edx, dword [ebp + ecx*4 + 0x28390]
mov ecx, dword [esp + 0x24]
shr edx, 2
mov ecx, dword [ecx*4 + 0x4112b0]
add ecx, dword [edx*4 + 0x4112b0]
add ecx, eax
mov eax, dword [ebp + 0x5c]
cmp ecx, eax
jae 0x4083d7
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x64], edi
mov byte [ebp + 0x51], 0
mov edx, dword [esp + 0x44]
cmp edx, 2
jae 0x408408
mov eax, dword [esp + 0xa0]
mov edx, dword [ebp + 0x64]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword [eax], edx
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x88
ret 0xc
xor eax, eax
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + eax*4 + 0x28360]
mov eax, dword [esp + 0x14]
shr ecx, 2
mov edi, dword [ecx*4 + 0x4112b0]
add edi, esi
cmp edx, eax
mov dword [esp + 0x48], edi
ja 0x408432
xor edx, edx
mov dword [esp + 0x44], edx
mov eax, 2
cmp edx, eax
jb 0x408527
lea edx, [eax + eax*4]
lea edx, [ebp + edx*8]
mov dword [esp + 0x24], edx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp + eax*4 + 0x325d0]
add ecx, 4
cmp eax, 2
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp + eax*4 + 0x325d0]
jne 0x40847c
cmp ecx, 0x80
jb 0x40847c
mov ecx, 0xfffffff
jmp 0x408511
lea esi, [eax - 2]
cmp esi, 4
jb 0x408489
mov esi, 3
cmp ecx, 0x80
jae 0x40849f
shl esi, 7
add esi, ecx
mov esi, dword [ebp + esi*4 + 0x32e34]
jmp 0x408501
cmp ecx, 0x10000
jae 0x4084b9
mov edi, ecx
xor edx, edx
shr edi, 6
mov dl, byte [edi + 0x410aa8]
add edx, 0xc
jmp 0x4084e1
cmp ecx, 0x2000000
mov edi, ecx
jae 0x4084d3
shr edi, 0xf
xor edx, edx
mov dl, byte [edi + 0x410aa8]
add edx, 0x1e
jmp 0x4084e1
shr edi, 0x18
xor edx, edx
mov dl, byte [edi + 0x410aa8]
add edx, 0x30
shl esi, 6
mov edi, dword [esp + 0x48]
add esi, edx
and ecx, 0xf
mov esi, dword [ebp + esi*4 + 0x32a34]
mov edx, dword [ebp + ecx*4 + 0x33634]
add esi, edx
mov edx, dword [esp + 0x24]
mov ecx, eax
shl ecx, 4
add ecx, ebx
mov ecx, dword [ebp + ecx*4 + 0x294b0]
add ecx, esi
add ecx, edi
inc eax
mov dword [edx + 0x34], ecx
mov byte [edx + 0x29], 0
mov edx, dword [esp + 0x44]
cmp eax, edx
jbe 0x40843f
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jae 0x408535
mov edx, ecx
mov dword [esp + 0x44], edx
cmp eax, edx
ja 0x408552
lea edx, [eax + eax*4]
lea ecx, [ebp + edx*8 + 0x34]
mov dword [ecx], 0xfffffff
mov edx, dword [esp + 0x44]
inc eax
add ecx, 0x28
cmp eax, edx
jbe 0x408540
xor edi, edi
mov eax, dword [esp + edi*4 + 0x88]
cmp eax, 2
jb 0x408666
lea ecx, [ebp + ebx*4 + 0x2e17c]
dec eax
lea esi, [ebp + 0x84]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
mov dl, byte [ebp + 0x10]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x28], dl
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
test edi, edi
jne 0x4085b7
and ecx, 0xff
mov edx, ecx
mov ecx, dword [ebp + ecx*4 + 0x28390]
shl edx, 4
add edx, ebx
mov ebx, 0x800
sub ebx, dword [ebp + edx*4 + 0x28420]
shr ebx, 2
shr ecx, 2
jmp 0x408613
and ecx, 0xff
mov edx, 0x800
sub edx, dword [ebp + ecx*4 + 0x28390]
shr edx, 2
add eax, dword [edx*4 + 0x4112b0]
cmp edi, 1
jne 0x4085eb
mov ecx, dword [ebp + ecx*4 + 0x283c0]
shr ecx, 2
add eax, dword [ecx*4 + 0x4112b0]
jmp 0x408629
mov ebx, 0x800
lea edx, [edi - 2]
sub ebx, dword [ebp + ecx*4 + 0x283c0]
mov ecx, dword [ebp + ecx*4 + 0x283f0]
sub ecx, edx
neg edx
xor ecx, edx
shr ecx, 2
shr ebx, 2
and ecx, 0x1ff
mov edx, dword [ebx*4 + 0x4112b0]
mov ebx, dword [ecx*4 + 0x4112b0]
add edx, ebx
mov ebx, dword [esp + 0x38]
add eax, edx
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esi]
cmp eax, ecx
jae 0x408645
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov byte [esi - 0xb], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
add esi, 0x28
add ecx, 0x40
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
jne 0x40857a
mov edx, dword [esp + 0x44]
inc edi
cmp edi, 4
jb 0x408554
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
je 0x4090ec
mov edx, dword [esp + 0x9c]
inc edx
mov dword [esp + 0x9c], edx
lea edx, [esi + esi*4]
mov eax, dword [ebp + edx*8 + 0x38]
lea ebx, [ebp + edx*8]
mov dl, byte [ebp + edx*8 + 0x29]
test dl, dl
je 0x408710
mov cl, byte [ebx + 0x2a]
dec eax
test cl, cl
je 0x4086f2
mov ecx, dword [ebx + 0x2c]
inc ecx
lea ecx, [ecx + ecx*4]
mov cl, byte [ebp + ecx*8]
mov byte [esp + 0x10], cl
mov ecx, dword [ebx + 0x30]
cmp ecx, 4
mov ecx, dword [esp + 0x10]
jae 0x4086e4
and ecx, 0xff
mov cl, byte [ecx + 0x40c53c]
jmp 0x4086fa
and ecx, 0xff
mov cl, byte [ecx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
jmp 0x4086fa
lea ecx, [eax + eax*4 + 5]
mov cl, byte [ebp + ecx*8]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov cl, byte [ecx + 0x40c524]
jmp 0x408718
lea ecx, [eax + eax*4 + 5]
mov cl, byte [ebp + ecx*8]
mov byte [esp + 0x10], cl
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x40875c
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x408743
mov edx, dword [esp + 0x10]
and edx, 0xff
mov al, byte [edx + 0x40c548]
mov byte [esp + 0x10], al
jmp 0x408803
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + 0x40c524]
mov byte [esp + 0x10], dl
jmp 0x408803
test dl, dl
je 0x40877f
mov cl, byte [ebx + 0x2a]
test cl, cl
je 0x40877f
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
and ecx, 0xff
mov cl, byte [ecx + 0x40c53c]
jmp 0x4087a5
mov edx, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x10]
cmp edx, 4
jae 0x408799
and ecx, 0xff
mov cl, byte [ecx + 0x40c53c]
jmp 0x4087a5
and ecx, 0xff
mov cl, byte [ecx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
cmp edx, 4
mov byte [esp + 0x10], cl
jae 0x408bc0
lea ecx, [eax + eax*4]
shl ecx, 1
mov dword [esp + 0x24], ecx
lea esi, [ecx + edx]
mov esi, dword [ebp + esi*4 + 0x40]
mov dword [esp + 0x54], esi
mov esi, 1
cmp edx, esi
jb 0x4087ea
lea eax, [eax + eax*4]
mov ecx, edx
lea edi, [esp + 0x58]
lea esi, [ebp + eax*8 + 0x40]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 1]
cmp esi, 4
jae 0x4087ff
mov ecx, dword [esp + 0x24]
add ecx, esi
lea edi, [esp + esi*4 + 0x54]
lea eax, [ebp + ecx*4 + 0x40]
mov ecx, 4
sub ecx, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov cl, byte [esp + 0x10]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
lea eax, [esi + 1]
lea eax, [eax + eax*4]
mov byte [ebp + eax*8], cl
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], eax
lea edx, [esp + 0x40]
mov dword [ebx + 0x4c], ecx
push edx
mov ecx, ebp
call fcn.00409130
test eax, eax
jne 0x40911f
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x32a1c]
cmp eax, ecx
ja 0x4090f7
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x28028]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ebx, eax
mov esi, dword [esp + 0x9c]
dec ebx
mov eax, ebx
mov dword [esp + 0x24], ebx
mov dl, byte [ebx]
sub eax, edi
mov edi, dword [esp + 0x10]
mov byte [esp + 0x68], dl
mov cl, byte [eax - 1]
mov eax, dword [ebp + 0x33680]
and edi, 0xff
and eax, esi
mov edx, edi
mov dword [esp + 0x48], eax
shl edx, 4
add eax, edx
mov byte [esp + 0x6c], cl
mov dword [esp + 0x50], eax
mov dl, byte [ebx - 1]
mov eax, dword [ebp + eax*4 + 0x28060]
mov byte [esp + 0x80], dl
shr eax, 2
mov edx, dword [ebp + 0x325c4]
mov dword [esp + 0x4c], edi
mov ecx, dword [eax*4 + 0x4112b0]
mov eax, dword [esp + 0x68]
push eax
mov al, byte [esp + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x70]
cmp al, 7
push ecx
setae al
push eax
mov eax, dword [esp + 0x8c]
mov cl, 8
and eax, 0xff
sub cl, dl
shr eax, cl
mov ecx, dword [ebp + 0x325cc]
and ecx, esi
mov dword [esp + 0x28], ecx
mov ecx, edx
mov edx, dword [esp + 0x28]
shl edx, cl
add eax, edx
mov edx, dword [ebp + 0x325c0]
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, edx
call fcn.004072d0
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [esp + 0x18]
add esi, eax
mov byte [esp + 0x33], 0
lea eax, [ecx + ecx*4 + 0xa]
mov edx, dword [ebp + eax*8 + 0xc]
lea eax, [ebp + eax*8]
cmp esi, edx
jae 0x40895b
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 1], 0
mov byte [esp + 0x33], 1
mov edx, dword [esp + 0x50]
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28060]
mov edx, dword [esp + 0x14]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x4112b0]
add ecx, edx
mov edx, 0x800
sub edx, dword [ebp + edi*4 + 0x28360]
mov dword [esp + 0x64], ecx
shr edx, 2
mov edx, dword [edx*4 + 0x4112b0]
add edx, ecx
mov cl, byte [esp + 0x68]
mov dword [esp + 0x3c], edx
mov dl, byte [esp + 0x6c]
cmp dl, cl
jne 0x408a03
mov edx, dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jae 0x4089b9
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x408a03
mov ecx, dword [esp + 0x50]
mov edi, dword [ebp + edi*4 + 0x28390]
shr edi, 2
mov edx, dword [ebp + ecx*4 + 0x28420]
shr edx, 2
mov ecx, dword [edx*4 + 0x4112b0]
mov edx, dword [edi*4 + 0x4112b0]
mov edi, dword [esp + 0x3c]
add ecx, edx
mov edx, dword [eax + 0xc]
add ecx, edi
cmp ecx, edx
ja 0x408a03
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x28028]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, 0xfff
inc eax
sub ecx, edi
cmp ecx, eax
mov dword [esp + 0x34], eax
jae 0x408a29
mov dword [esp + 0x34], ecx
mov eax, ecx
cmp eax, 2
jb 0x40867c
mov ecx, dword [ebp + 0x32a1c]
cmp eax, ecx
jbe 0x408a42
mov dword [esp + 0x34], ecx
mov eax, ecx
cmp eax, 3
jb 0x408ba1
mov cl, byte [esp + 0x33]
test cl, cl
jne 0x408ba1
mov ecx, dword [esp + 0x54]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, 1
cmp eax, ecx
jbe 0x408a7e
mov edx, dword [esp + 0x1c]
mov edi, ecx
sub edi, edx
mov dl, byte [ecx + ebx]
cmp dl, byte [edi + ebx]
jne 0x408a7e
inc ecx
cmp ecx, eax
jb 0x408a69
dec ecx
cmp ecx, 2
mov dword [esp + 0x14], ecx
jb 0x408ba1
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x9c]
mov edi, dword [ebp + 0x33680]
mov cl, byte [eax + 0x40c524]
lea eax, [edx + 1]
mov byte [esp + 0x7c], cl
mov ecx, dword [esp + 0x7c]
and ecx, 0xff
and eax, edi
mov edx, ecx
mov dword [esp + 0x38], ecx
shl edx, 4
lea edi, [edx + eax]
mov edx, 0x800
sub edx, dword [ebp + ecx*4 + 0x28360]
mov ecx, 0x800
sub ecx, dword [ebp + edi*4 + 0x28060]
shr edx, 2
shr ecx, 2
mov edx, dword [edx*4 + 0x4112b0]
add edx, dword [ecx*4 + 0x4112b0]
mov ecx, dword [esp + 0x14]
add edx, esi
mov esi, dword [esp + 0x18]
lea ecx, [ecx + esi + 1]
mov esi, dword [esp + 0x2c]
cmp esi, ecx
jae 0x408b2b
lea esi, [esi + esi*4]
lea esi, [ebp + esi*8 + 0x34]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
sub ecx, esi
add esi, ecx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x1c]
add esi, 0x28
dec ecx
mov dword [esi], 0xfffffff
jne 0x408b1f
mov esi, dword [ebp + edi*4 + 0x28420]
mov ecx, 0x800
sub ecx, esi
mov esi, dword [esp + 0x38]
shr ecx, 2
mov esi, dword [ebp + esi*4 + 0x28390]
mov ecx, dword [ecx*4 + 0x4112b0]
shr esi, 2
mov edi, dword [esi*4 + 0x4112b0]
mov esi, dword [esp + 0x14]
add ecx, edi
mov edi, esi
shl edi, 4
add edi, eax
add ecx, dword [ebp + edi*4 + 0x2e0fc]
add ecx, edx
mov edx, dword [esp + 0x18]
lea eax, [esi + edx + 2]
lea eax, [eax + eax*4]
mov esi, dword [ebp + eax*8 + 0xc]
lea eax, [ebp + eax*8]
cmp ecx, esi
jae 0x408b9d
mov dword [eax + 0xc], ecx
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 1
mov byte [eax + 2], 0
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
xor edx, edx
mov dword [esp + 0x20], edx
mov esi, dword [esp + edx*4 + 0x54]
xor ecx, ecx
inc esi
test eax, eax
mov dword [esp + 0x1c], esi
jbe 0x408d51
jmp 0x408bed
lea ecx, [eax + eax*4]
add edx, 0xfffffffc
mov dword [esp + 0x54], edx
mov edx, dword [ebp + ecx*8 + 0x40]
lea eax, [ebp + ecx*8 + 0x40]
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
jmp 0x408803
mov esi, dword [esp + 0x1c]
mov eax, ecx
sub eax, esi
mov esi, eax
mov al, byte [ecx + ebx]
cmp al, byte [esi + ebx]
jne 0x408c04
mov eax, dword [esp + 0x34]
inc ecx
cmp ecx, eax
jb 0x408be9
cmp ecx, 2
jb 0x408d4d
mov eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x38], eax
lea eax, [eax + eax*4]
lea esi, [ebp + eax*8 + 0x34]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x48]
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [ebp + eax*4 + 0x2e0fc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jae 0x408c62
sub ecx, eax
lea edx, [eax + eax*4]
add eax, ecx
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x2c], eax
add edx, 0x28
dec ecx
mov dword [edx], 0xfffffff
jne 0x408c52
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
test edx, edx
mov ecx, dword [eax]
jne 0x408c9b
mov eax, dword [esp + 0x50]
mov edx, 0x800
sub edx, dword [ebp + eax*4 + 0x28420]
mov eax, dword [ebp + edi*4 + 0x28390]
shr eax, 2
shr edx, 2
mov edx, dword [edx*4 + 0x4112b0]
add edx, dword [eax*4 + 0x4112b0]
add ecx, edx
jmp 0x408d07
mov eax, 0x800
sub eax, dword [ebp + edi*4 + 0x28390]
shr eax, 2
add ecx, dword [eax*4 + 0x4112b0]
cmp edx, 1
jne 0x408cc9
mov eax, dword [ebp + edi*4 + 0x283c0]
shr eax, 2
add ecx, dword [eax*4 + 0x4112b0]
jmp 0x408d0b
mov eax, 0x800
add edx, 0xfffffffe
sub eax, dword [ebp + edi*4 + 0x283c0]
mov edi, dword [ebp + edi*4 + 0x283f0]
sub edi, edx
neg edx
xor edi, edx
shr edi, 2
shr eax, 2
and edi, 0x1ff
mov edx, dword [eax*4 + 0x4112b0]
mov eax, dword [edi*4 + 0x4112b0]
mov edi, dword [esp + 0x4c]
add edx, eax
add ecx, edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jae 0x408d27
mov dword [esi], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov byte [esi - 0xb], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
sub eax, 0x40
sub esi, 0x28
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
dec ecx
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
jne 0x408c3b
mov eax, dword [esp + 0x34]
inc edx
cmp edx, 4
mov dword [esp + 0x20], edx
jb 0x408bab
mov esi, dword [esp + 0x40]
cmp esi, eax
jbe 0x408d6d
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 2
jb 0x40867c
jne 0x408d88
cmp dword [ebp + 0x325d8], 0x80
jae 0x40867c
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + edx*4 + 0x28360]
add ecx, esi
shr eax, 2
mov eax, dword [eax*4 + 0x4112b0]
add eax, edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jae 0x408dd0
sub ecx, eax
lea edx, [eax + eax*4]
add eax, ecx
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x2c], eax
add edx, 0x28
dec ecx
mov dword [edx], 0xfffffff
jne 0x408dc4
mov edi, dword [ebp + esi*4 + 0x325d0]
cmp esi, 2
mov dword [esp + 0x78], edi
jne 0x408df2
cmp edi, 0x80
jb 0x408df2
mov edx, 0xfffffff
jmp 0x408e87
lea ecx, [esi - 2]
cmp ecx, 4
jb 0x408dff
mov ecx, 3
cmp edi, 0x80
jae 0x408e15
shl ecx, 7
add ecx, edi
mov ecx, dword [ebp + ecx*4 + 0x32e34]
jmp 0x408e73
cmp edi, 0x10000
jae 0x408e2f
mov eax, edi
xor edx, edx
shr eax, 6
mov dl, byte [eax + 0x410aa8]
add edx, 0xc
jmp 0x408e5b
cmp edi, 0x2000000
mov edx, edi
jae 0x408e4b
shr edx, 0xf
xor eax, eax
mov al, byte [edx + 0x410aa8]
mov edx, eax
add edx, 0x1e
jmp 0x408e5b
shr edx, 0x18
xor eax, eax
mov al, byte [edx + 0x410aa8]
mov edx, eax
add edx, 0x30
shl ecx, 6
add ecx, edx
mov edx, edi
and edx, 0xf
mov ecx, dword [ebp + ecx*4 + 0x32a34]
add ecx, dword [ebp + edx*4 + 0x33634]
mov edx, dword [esp + 0x48]
mov eax, esi
shl eax, 4
add eax, edx
mov edx, dword [ebp + eax*4 + 0x294b0]
add edx, ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
add edx, ecx
lea ecx, [eax + esi + 1]
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], ecx
lea ecx, [ecx + ecx*4]
cmp edx, dword [ebp + ecx*8 + 0xc]
lea ecx, [ebp + ecx*8]
jae 0x408eba
mov dword [ecx + 0xc], edx
lea edx, [edi + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov byte [ecx + 1], 0
mov al, byte [ebp + 0x32a19]
test al, al
je 0x4090dd
mov eax, dword [esp + 0x34]
lea ecx, [esi + 1]
inc edi
cmp ecx, eax
mov dword [esp + 0x3c], edi
jae 0x408eed
mov dl, byte [ecx + ebx]
mov eax, ecx
sub eax, edi
cmp dl, byte [eax + ebx]
jne 0x408eed
mov eax, dword [esp + 0x34]
inc ecx
cmp ecx, eax
jb 0x408ed8
sub ecx, esi
dec ecx
cmp ecx, 2
mov dword [esp + 0x1c], ecx
jb 0x4090dd
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x9c]
add edx, esi
mov cl, byte [eax + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov eax, dword [ebp + 0x33680]
mov byte [esp + 0x28], cl
mov edi, dword [esp + 0x28]
and edi, 0xff
and eax, edx
mov ecx, edi
shl ecx, 4
add eax, ecx
mov eax, dword [ebp + eax*4 + 0x28060]
shr eax, 2
mov ecx, dword [eax*4 + 0x4112b0]
mov al, byte [ebx + esi - 1]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x74], al
mov eax, dword [esp + 0x3c]
mov ecx, esi
sub ecx, eax
mov al, byte [ecx + ebx]
mov cl, byte [esi + ebx]
mov ebx, dword [ebp + 0x325c4]
mov byte [esp + 0x84], cl
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov cl, 8
and eax, 0xff
sub cl, bl
push 1
shr eax, cl
mov ecx, dword [ebp + 0x325cc]
and ecx, edx
mov edx, ecx
mov ecx, ebx
mov ebx, dword [ebp + 0x325c0]
shl edx, cl
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, ebx
call fcn.004072d0
mov edx, dword [esp + 0x9c]
mov cl, byte [edi + 0x40c524]
mov edi, dword [ebp + 0x33680]
mov byte [esp + 0x28], cl
lea edx, [esi + edx + 1]
mov ebx, 0x800
and edx, edi
mov edi, dword [esp + 0x28]
and edi, 0xff
mov ecx, edi
shl ecx, 4
add ecx, edx
mov dword [esp + 0x50], ecx
sub ebx, dword [ebp + ecx*4 + 0x28060]
shr ebx, 2
mov ecx, dword [ebx*4 + 0x4112b0]
mov ebx, 0x800
sub ebx, dword [ebp + edi*4 + 0x28360]
shr ebx, 2
add ecx, dword [ebx*4 + 0x4112b0]
mov ebx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x38]
add ecx, ebx
mov ebx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + esi + 1]
mov dword [esp + 0x14], eax
add eax, ebx
mov ebx, dword [esp + 0x2c]
cmp ebx, eax
jae 0x409057
lea ebx, [ebx + ebx*4]
lea ebx, [ebp + ebx*8 + 0x34]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x2c]
sub eax, ebx
add ebx, eax
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x3c]
add ebx, 0x28
dec eax
mov dword [ebx], 0xfffffff
jne 0x40904b
mov edi, dword [ebp + edi*4 + 0x28390]
mov ebx, dword [esp + 0x50]
mov eax, 0x800
sub eax, dword [ebp + ebx*4 + 0x28420]
shr edi, 2
shr eax, 2
mov ebx, dword [edi*4 + 0x4112b0]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x4112b0]
shl edi, 4
add edi, edx
add eax, ebx
mov edx, dword [ebp + edi*4 + 0x2e0fc]
add eax, edx
mov edx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x14]
lea ecx, [edx + ecx + 1]
lea ecx, [ecx + ecx*4]
mov edi, dword [ebp + ecx*8 + 0xc]
lea ecx, [ebp + ecx*8]
cmp eax, edi
jae 0x4090d9
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
add edx, 4
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0
mov byte [ecx + 1], 1
mov byte [ecx + 2], 1
mov dword [ecx + 8], edx
mov ebx, dword [esp + 0x24]
dec esi
cmp esi, 2
jae 0x408dd0
jmp 0x40867c
mov eax, dword [esp + 0xa0]
push esi
push eax
jmp 0x40910d
mov edx, dword [esp + 0xa0]
push esi
mov dword [ebp + 0x32a20], eax
mov byte [ebp + 0x32a30], 1
push edx
mov ecx, ebp
call fcn.00408020
mov ecx, dword [esp + 0xa4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc