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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x9c
mov eax, dword [ecx + 0x58]
cmp eax, 0xffffffff
je 0x408aca
mov dword [esp + 0x30], eax
movzx eax, word [ecx + 0x2e]
mov word [esp + 0x96], ax
mov eax, dword [ecx + 0x84]
mov dword [esp + 0x3c], eax
mov edi, dword [ecx + 0x80]
mov eax, dword [ecx + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x78]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x68], eax
mov al, byte [ecx + 0x2d]
mov byte [esp + 0x47], al
mov al, byte [ecx + 0x2c]
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x70]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x4c]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x44]
mov dword [esp], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x58], edx
mov ebx, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x88], edx
mov esi, dword [ecx]
mov dword [esp + 0x98], ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add ecx, 0xe6c
mov dword [esp + 0x18], ecx
mov ecx, 8
sub ecx, dword [esp + 0x90]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
cmp esi, 0x1c
ja case.default.0x407c82
jmp dword [esi*4 + 0x40aa20]
test ecx, ecx
jne 0x408260
cmp dword [esp + 0x54], 0
je case.default.0x407c82
xor eax, eax
cmp dword [esp + 0x24], 7
setge al
add eax, eax
add eax, 9
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
sub eax, 1
jb 0x408aea
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov ebp, eax
sub ebp, dword [esp + 0x48]
xor ecx, ecx
mov esi, dword [esp + 0x64]
cmp ebp, esi
mov edx, esi
cmovb edx, ecx
add edx, ebp
mov cl, byte [edi + edx]
mov byte [edi + eax], cl
inc eax
xor edx, edx
div esi
inc dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov byte [esp + 0x13], cl
mov byte [eax], cl
inc eax
mov dword [esp + 0x58], eax
mov esi, 2
mov dword [esp + 0x68], edx
jmp 0x407c75
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
jmp 0x408049
test ecx, ecx
jne 0x4083a8
mov eax, dword [esp + 0x80]
and eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x90]
shl eax, cl
movzx edx, byte [esp + 0x13]
mov ecx, dword [esp + 0x74]
shr edx, cl
add edx, eax
lea eax, [edx + edx*2]
shl eax, 9
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 4
jl 0x407d8a
cmp ecx, 9
ja 0x407d83
add ecx, 0xfffffffd
jmp 0x407d86
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
jmp 0x407e62
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
jmp 0x407f41
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
jmp 0x408007
add ecx, 0xfffffffa
mov dword [esp + 0x5c], ecx
add eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x84], 0
je 0x407dbd
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x48]
xor ecx, ecx
mov edx, dword [esp + 0x64]
cmp eax, edx
cmovae ecx, edx
add ecx, eax
mov al, byte [edi + ecx]
mov byte [esp + 0x47], al
xor edx, edx
inc edx
jmp 0x407dc8
xor eax, eax
inc eax
mov dword [esp], eax
jmp 0x408038
mov cl, byte [esp + 0x47]
mov eax, ecx
shr al, 7
movzx eax, al
add cl, cl
mov byte [esp + 0x47], cl
mov dword [esp + 0x28], eax
shl eax, 9
add eax, dword [esp + 0x34]
lea ecx, [eax + edx*2]
add ecx, 0x200
mov esi, dword [esp + 8]
mov eax, esi
shr eax, 0xb
mov dword [esp + 0x50], ecx
mov edi, edx
movzx edx, word [ecx]
imul eax, edx
add edi, edi
mov ecx, dword [esp + 4]
sub ecx, eax
jae 0x407e2a
mov dword [esp], edi
mov edi, 0x800
sub edi, edx
shr edi, 5
add edi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
jmp 0x407e4c
sub esi, eax
mov eax, edx
shr eax, 5
sub edx, eax
or edi, 1
mov dword [esp], edi
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
mov eax, esi
mov edi, edx
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov word [ecx], di
cmp eax, 0x1000000
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jae 0x407e8d
test ebx, ebx
je 0x408c8f
shl dword [esp + 8], 8
mov edx, dword [esp + 4]
shl edx, 8
dec ebx
mov esi, ecx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
mov ecx, esi
or edx, eax
mov dword [esp + 4], edx
cmp dword [esp + 0x28], ecx
mov dword [esp + 0x14], ecx
jne 0x407eab
mov edx, dword [esp]
cmp edx, 0x100
jl 0x407dc8
jmp 0x407f83
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x58], ebp
cmp eax, 0xff
jg 0x407f71
mov ebp, ecx
mov edi, dword [esp + 8]
mov edx, edi
shr edx, 0xb
mov ecx, dword [esp + 0x34]
movzx ecx, word [ecx + eax*2]
imul edx, ecx
lea esi, [eax + eax]
mov ebx, dword [esp + 4]
sub ebx, edx
jae 0x407f00
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
jmp 0x407f14
sub edi, edx
mov edx, ecx
shr edx, 5
sub ecx, edx
or esi, 1
mov edx, edi
mov edi, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x34]
lea eax, [ecx + eax*2]
mov dword [esp + 0x50], eax
mov word [eax], di
mov eax, esi
mov dword [esp + 8], edx
cmp edx, 0x1000000
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x1c]
jae 0x407ec6
mov dword [esp], esi
mov dword [esp + 0x54], ecx
test ebx, ebx
je 0x408b3c
shl dword [esp + 8], 8
mov edx, dword [esp + 4]
shl edx, 8
dec ebx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
or edx, eax
mov dword [esp + 4], edx
jmp 0x407eb7
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov edx, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x84], 0
mov dword [esp], edx
mov eax, edx
mov byte [esp + 0x13], dl
mov eax, dword [esp + 0xc]
jmp 0x408051
mov eax, dword [esp + 0x34]
mov esi, dword [esp]
lea ecx, [eax + esi*2]
mov eax, edi
shr eax, 0xb
mov dword [esp + 0x50], ecx
movzx edx, word [ecx]
imul eax, edx
add esi, esi
mov ecx, ebp
sub ecx, eax
jae 0x407fda
mov dword [esp], esi
mov dword [esp + 4], ebp
mov edi, 0x800
sub edi, edx
shr edi, 5
add edi, edx
mov dword [esp + 8], eax
jmp 0x407ff5
sub edi, eax
mov eax, edx
shr eax, 5
sub edx, eax
or esi, 1
mov dword [esp], esi
mov eax, edi
mov edi, edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov word [ecx], di
cmp eax, 0x1000000
mov edi, dword [esp + 0x20]
jae 0x40802e
test ebx, ebx
je 0x408c88
shl dword [esp + 8], 8
mov edx, dword [esp + 4]
shl edx, 8
dec ebx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
or edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp]
cmp eax, 0x100
jge 0x408045
mov ebp, dword [esp + 4]
mov edi, dword [esp + 8]
jmp 0x407fa0
mov byte [esp + 0x13], al
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x28], ecx
je 0x408b1a
inc dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dl, byte [esp + 0x13]
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x58], ecx
dec eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov byte [edi + eax], dl
inc eax
xor edx, edx
div dword [esp + 0x64]
mov esi, 2
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x68], edx
jmp 0x407c75
mov ecx, dword [esp + 0x28]
jmp 0x4083d6
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jmp 0x408525
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
test ecx, ecx
je 0x408336
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + eax*2]
add eax, 0x1c8
mov dword [esp + 0x4c], 0xb
jmp 0x408393
test ebx, ebx
je 0x408ca7
mov eax, dword [esp + 0x2c]
mov ch, byte [eax]
cmp ch, 0xe1
ja case.default.0x407c82
mov dword [esp + 0x1c], ebx
movzx eax, ch
imul eax, eax, 0x6d
mov cl, ch
sub cl, ah
shr cl, 1
add cl, ah
shr cl, 5
movzx eax, cl
lea edx, [eax + eax*8]
lea edx, [edx + edx*4]
sub ch, dl
movzx edx, ch
imul edx, edx, 0x39
shr edx, 9
lea esi, [edx + edx*8]
xor ebx, ebx
dec ebx
mov edi, ebx
shl edi, cl
mov dword [esp + 0x8c], edi
mov edi, ebx
mov cl, dl
shl edi, cl
mov dword [esp + 0x80], edi
mov edx, esi
sub ch, dl
movzx ecx, ch
mov dword [esp + 0x90], ecx
add eax, ecx
mov edi, 0x300
mov ecx, eax
shl edi, cl
lea esi, [edi + edi]
add esi, 0xe6c
mov eax, dword [esp + 0x6c]
cmp esi, eax
jne 0x4082cc
mov esi, eax
jmp 0x4082f0
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
jmp 0x408469
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
jmp 0x4084a4
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
cmp ecx, 1
jne 0x408278
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + eax*2]
add eax, 0x198
mov dword [esp + 0x4c], 8
jmp 0x408393
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
test ecx, ecx
je 0x408374
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + eax*2]
add eax, 0x1b0
mov dword [esp + 0x4c], 0xa
jmp 0x408393
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
test ecx, ecx
mov edx, dword [esp + 0x38]
mov ecx, edx
mov eax, dword [esp + 0x7c]
cmove ecx, eax
cmove eax, edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
jmp 0x408342
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
mov dword [esp + 0x4c], 0x12
mov eax, dword [esp + 0x34]
jmp 0x408393
test ecx, ecx
je 0x4089b7
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
mov eax, dword [esp + 0x34]
add eax, 2
mov dword [esp + 0x4c], 0x13
jmp 0x408393
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
jmp 0x408342
xor eax, eax
cmp dword [esp + 0x24], 7
setge al
lea eax, [eax + eax*2 + 7]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0x664]
mov dword [esp + 0x4c], 0x12
mov dword [esp + 0x88], 0x16
mov eax, ecx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], eax
mov eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
jmp 0x4084a4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4082db
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x408c7b
not dword [esp + 0x8c]
not dword [esp + 0x80]
add edi, 0x735
mov eax, dword [esp + 0x3c]
mov word [eax + edi*2], 0x400
add edi, 0xffffffff
jb 0x408308
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 0
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x1c]
jmp 0x4083ff
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
add ebx, 0xa68
mov dword [esp + 0x4c], 0x12
mov dword [esp + 0x88], 0x15
mov ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
mov eax, ebx
jmp 0x4084a0
mov eax, dword [esp + 0x24]
shl eax, 5
add eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
lea eax, [eax + ecx*2]
add eax, 0x1e0
mov dword [esp + 0x4c], 9
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
jmp 0x4084a4
mov dword [esp + 0x1c], ebx
mov esi, dword [esp]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + eax*2]
add ecx, 0x180
mov dword [esp + 0x4c], 7
xor eax, eax
inc eax
mov dword [esp + 0x84], eax
mov eax, ecx
jmp 0x408393
test ebx, ebx
je 0x408b5a
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx]
mov esi, ecx
lea ecx, [ecx*8]
shl eax, cl
mov ecx, esi
or dword [esp + 0x14], eax
inc ecx
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
inc edx
mov dword [esp + 0x2c], edx
dec ebx
cmp ecx, 4
jge 0x408410
mov dword [esp + 0x6c], esi
jmp 0x4083d6
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x40843e
test edi, edi
je 0x408427
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [esp + 0x14]
test edi, edi
je case.default.0x407c82
mov byte [eax + edi - 1], 0
mov ecx, 5
sub ecx, 1
jae 0x408561
mov dword [esp + 0x1c], ebx
mov ecx, esi
mov esi, dword [esp]
mov dword [esp + 0x64], eax
xor eax, eax
dec eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x8c]
and ecx, dword [esp + 0x54]
mov ebx, eax
mov dword [esp + 0x24], eax
shl eax, 5
add eax, dword [esp + 0x3c]
mov dword [esp + 0x78], ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x4c], 6
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov edx, edi
mov edi, dword [esp + 8]
mov ebx, edi
shr ebx, 0xb
mov dword [esp + 0x50], eax
movzx eax, word [eax]
imul ebx, eax
mov ecx, dword [esp + 4]
sub ecx, ebx
jae 0x4084db
mov edi, 0x800
sub edi, eax
shr edi, 5
add edi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 8], ebx
jmp 0x4084f7
sub edi, ebx
mov ebx, edi
mov edi, eax
shr edi, 5
sub eax, edi
xor edi, edi
inc edi
mov dword [esp + 0x14], edi
mov edi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x50]
mov word [eax], di
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x38], edi
cmp ebx, 0x1000000
mov edi, edx
mov dword [esp], esi
mov esi, ecx
mov ebx, dword [esp + 0x1c]
jae 0x407c4f
test ebx, ebx
je 0x408afa
shl dword [esp + 8], 8
mov edx, dword [esp + 4]
shl edx, 8
dec ebx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
or edx, eax
mov dword [esp + 4], edx
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
jmp 0x407c4f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], esi
test ebx, ebx
je 0x408b13
mov edx, dword [esp + 4]
shl edx, 8
dec ebx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
or edx, eax
mov dword [esp + 4], edx
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
jmp 0x408448
mov dword [esp + 0x1c], ebx
jmp 0x4086b8
mov ebp, ecx
mov eax, dword [esp + 0xc]
jmp 0x4088ad
mov eax, dword [esp]
add dword [esp + 0x30], eax
mov esi, dword [esp + 0x88]
jmp 0x407c4b
xor eax, eax
cmp dword [esp + 0x24], 7
setge al
lea eax, [eax + eax*2]
or eax, 8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
jmp 0x4087ad
mov dword [esp + 0x18], esi
mov esi, dword [esp]
cmp esi, 4
jl 0x408652
mov edx, esi
shr edx, 1
lea ecx, [edx - 1]
mov eax, esi
and eax, 1
or eax, 2
mov ebp, ecx
shl eax, cl
cmp esi, 0xd
mov dword [esp + 0x48], eax
ja 0x408661
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + eax*2]
add esi, esi
sub eax, esi
add eax, 0x55e
mov dword [esp + 0x34], eax
xor eax, eax
inc eax
mov dword [esp + 0x60], eax
mov dword [esp], 0
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
jmp 0x408728
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
jmp 0x4087e1
mov eax, esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
jmp 0x4087ac
mov dword [esp + 0x1c], ebx
add edx, 0xfffffffb
mov dword [esp], 0
mov eax, edx
mov esi, dword [esp + 0x18]
test eax, eax
jle 0x4086f4
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov ebp, ecx
shr ebp, 1
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 4]
cmp esi, ebp
setae dl
cmovae eax, ebp
mov ebx, dword [esp]
lea ebx, [edx + ebx*2]
mov dword [esp], ebx
sub esi, eax
mov dword [esp + 4], esi
mov esi, dword [esp + 0x18]
cmp ecx, 0x2000000
mov dword [esp + 8], ebp
jae 0x4086e9
mov eax, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 4]
mov ebp, dword [esp + 8]
je 0x408b63
shl ebp, 8
shl edx, 8
dec eax
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
or edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 8], ebp
jmp 0x408675
mov eax, dword [esp]
shl eax, 4
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
add eax, 0x644
mov dword [esp + 0x34], eax
xor eax, eax
inc eax
mov dword [esp + 0x60], eax
mov dword [esp], 0
mov ebp, 4
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
cmp ecx, ebp
jge 0x40879d
mov edx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x34]
lea eax, [eax + esi*2]
mov ebp, dword [esp + 8]
mov ecx, ebp
shr ecx, 0xb
mov dword [esp + 0x50], eax
movzx edi, word [eax]
imul ecx, edi
mov eax, dword [esp + 4]
mov dword [esp + 0x14], ecx
sub eax, ecx
mov dword [esp + 0x1c], ebx
jae 0x408855
mov ebx, 0x800
sub ebx, edi
shr ebx, 5
add ebx, edi
add esi, esi
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ebp, edx
jmp 0x408898
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
add eax, dword [esp]
mov dword [esp + 0x14], ebp
inc eax
test eax, eax
mov dword [esp + 0x28], ecx
je 0x408b47
mov edx, dword [esp + 0x54]
cmp eax, edx
ja case.default.0x407c82
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x30]
add edx, ecx
add edx, 2
mov dword [esp + 0x54], edx
add ecx, 2
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
mov dword [esp], edx
mov edx, ecx
sub eax, 1
jb 0x408ad2
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x68]
mov eax, ebp
sub eax, dword [esp + 0x48]
xor ecx, ecx
mov esi, dword [esp + 0x64]
cmp eax, esi
mov ebx, edi
mov edi, esi
cmovb edi, ecx
add edi, eax
mov cl, byte [ebx + edi]
mov edi, ebx
mov ebx, dword [esp + 0x58]
mov byte [edi + ebp], cl
inc ebp
mov eax, ebp
mov ebp, edx
xor edx, edx
div esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x13], cl
mov byte [ebx], cl
inc ebx
mov dword [esp + 0x58], ebx
lea ecx, [ebp - 1]
mov dword [esp + 0x68], edx
cmp ebp, 1
mov edx, ecx
jg 0x4087e9
mov dword [esp + 0x30], ecx
mov esi, 2
mov ebx, dword [esp + 0x1c]
jmp 0x407c4b
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov edx, dword [esp]
bts edx, ebx
mov dword [esp], edx
sub ebp, dword [esp + 0x14]
mov edx, edi
shr edx, 5
sub edi, edx
mov ecx, dword [esp + 0x74]
add esi, esi
inc esi
mov dword [esp + 0x60], esi
mov ebx, edi
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ebp
mov ebp, ecx
mov dword [esp + 4], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov word [ecx], bx
cmp dword [esp + 0x14], 0x1000000
mov ebx, dword [esp + 0x1c]
jae 0x4088f6
mov dword [esp + 0x74], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
test ebx, ebx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 4]
mov ecx, ebx
mov ebx, dword [esp + 8]
je 0x408b2b
shl ebx, 8
shl esi, 8
dec ecx
movzx eax, byte [edx]
inc edx
mov dword [esp + 0x2c], edx
or esi, eax
mov dword [esp + 4], esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
mov ebx, ecx
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
inc ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 8], edx
jmp 0x408728
mov ecx, dword [esp + 0x30]
cmp ecx, 3
mov eax, 3
cmovl eax, ecx
shl eax, 7
mov ecx, dword [esp + 0x3c]
add eax, ecx
add eax, 0x360
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0x19
xor esi, esi
inc esi
mov dword [esp + 0x14], 6
mov ecx, 6
jmp 0x4089ad
test ecx, ecx
je 0x408976
add dword [esp + 0x34], 0x204
mov dword [esp + 0x70], 0x14
xor esi, esi
inc esi
mov dword [esp + 0x14], 8
mov dword [esp + 0x30], 0x10
mov ecx, 8
jmp 0x4089ad
xor esi, esi
inc esi
jmp 0x4089ad
mov eax, dword [esp + 0x78]
shl eax, 4
mov ecx, dword [esp + 0x34]
add ecx, eax
add ecx, 0x104
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], 0x14
xor esi, esi
inc esi
mov dword [esp + 0x14], 3
mov dword [esp + 0x30], 8
mov ecx, 3
mov edx, dword [esp + 4]
mov edi, dword [esp + 8]
jmp 0x4089e8
mov eax, dword [esp + 0x78]
shl eax, 4
mov ecx, dword [esp + 0x34]
add ecx, eax
add ecx, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], 0x14
xor esi, esi
inc esi
mov dword [esp + 0x14], 3
mov dword [esp + 0x30], 0
jmp 0x4089a8
test ecx, ecx
jle 0x408a2c
mov dword [esp + 0x28], ecx
mov ebp, ebx
mov eax, dword [esp + 0x34]
lea ecx, [eax + esi*2]
mov eax, edi
shr eax, 0xb
mov dword [esp + 0x50], ecx
movzx ecx, word [ecx]
imul eax, ecx
add esi, esi
mov ebx, edi
mov edi, edx
sub edi, eax
jae 0x408a5b
mov dword [esp + 0x60], esi
mov dword [esp + 4], edx
mov edx, 0x800
sub edx, ecx
shr edx, 5
add edx, ecx
mov dword [esp + 8], eax
jmp 0x408a77
mov dword [esp + 0x28], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
xor eax, eax
dec eax
mov ecx, dword [esp + 0x14]
shl eax, cl
mov dword [esp + 0x60], esi
add eax, esi
mov dword [esp], eax
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
jmp 0x407c47
sub ebx, eax
mov eax, ecx
shr eax, 5
sub ecx, eax
or esi, 1
mov dword [esp + 0x60], esi
mov edx, ecx
mov dword [esp + 8], ebx
mov eax, ebx
mov dword [esp + 4], edi
mov edi, dword [esp + 0x20]
mov ebx, ebp
mov ecx, dword [esp + 0x50]
mov word [ecx], dx
cmp eax, 0x1000000
jae 0x408ab2
test ebx, ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 4]
mov esi, dword [esp + 8]
je 0x408af3
shl esi, 8
shl edx, 8
dec ebx
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
or edx, eax
mov dword [esp + 4], edx
mov eax, esi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x28]
dec ecx
mov edi, eax
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x60]
jmp 0x4089e8
xor ebx, ebx
inc ebx
jmp 0x408c7b
xor ebp, ebp
mov ecx, 0x1c
mov ebx, dword [esp + 0x1c]
jmp 0x408b72
xor ebx, ebx
dec ebx
jmp 0x408c7b
xor ebp, ebp
mov ecx, 0x1b
jmp 0x408b6e
mov ecx, 0x18
jmp 0x408b68
mov ecx, 5
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
jmp 0x408b6a
mov ecx, 3
jmp 0x408b68
mov ecx, 0x1a
xor ebp, ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jmp 0x408b6e
mov ecx, 0x10
xor ebx, ebx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
jmp 0x408b6a
mov dword [esp + 0x58], ebp
mov ecx, 0xe
jmp 0x408b68
mov dword [esp + 0x48], 0
xor edx, edx
dec edx
mov ebp, dword [esp + 0xc]
mov ecx, esi
jmp 0x408b72
mov dword [esp + 0x28], ecx
xor ecx, ecx
inc ecx
jmp 0x408b68
mov ecx, 0xc
xor ebx, ebx
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov esi, dword [esp]
mov eax, dword [esp + 0x98]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ebp
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x28], ecx
mov cl, byte [esp + 0x13]
mov byte [eax + 0x2c], cl
mov cl, byte [esp + 0x47]
mov byte [eax + 0x2d], cl
movzx ecx, word [esp + 0x96]
mov word [eax + 0x2e], cx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], esi
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0x4c], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x50], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], edx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x64], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x68], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x6c], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x70], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x74], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x78], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], edi
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x84], ecx
xor ebx, ebx
mov eax, ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xf
jmp 0x408c98
mov dword [esp + 0x14], ecx
mov ecx, 0xd
xor ebx, ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jmp 0x408b6a
xor ebx, ebx
xor ecx, ecx
jmp 0x408b6a