Function at 0x408277
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 0x40923a
mov dword [esp + 0x2c], eax
movzx eax, word [ecx + 0x2e]
mov word [esp + 0x96], ax
mov eax, dword [ecx + 0x84]
mov dword [esp + 0x40], eax
mov edi, dword [ecx + 0x80]
mov eax, dword [ecx + 0x7c]
mov dword [esp], eax
mov eax, dword [ecx + 0x78]
mov dword [esp + 8], eax
mov ebp, dword [ecx + 0x74]
mov al, byte [ecx + 0x2d]
mov byte [esp + 0x4b], al
mov al, byte [ecx + 0x2c]
mov byte [esp + 0xf], 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 + 0x78], eax
mov eax, dword [ecx + 0x64]
mov dword [esp + 0x3c], eax
mov ebx, dword [ecx + 0x60]
mov eax, dword [ecx + 0x5c]
mov dword [esp + 0x4c], 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 + 0x1c], eax
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x30], edx
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x88], edx
mov edx, ebx
mov ebx, esi
mov esi, dword [ecx]
mov dword [esp + 0x98], ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x54], ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x40]
add ecx, 0xe6c
mov dword [esp + 0x14], ecx
mov ecx, 8
sub ecx, dword [esp + 0x90]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x20], edx
cmp esi, 0x1c
ja case.default.0x4083c8
mov dword [esp + 0x18], eax
jmp dword [esi*4 + 0x40b9d4]
cmp dword [esp + 0x1c], 0
jne 0x408afc
test eax, eax
je case.default.0x4083c8
xor eax, eax
cmp dword [esp + 0x24], 7
setge al
lea ecx, [eax + eax + 9]
jmp 0x4083f6
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 0x60]
sub eax, 1
mov dword [esp + 0x24], ecx
jb 0x40925b
mov dword [esp + 0x60], eax
mov eax, ebp
sub eax, dword [esp + 0x4c]
cmp eax, ebx
mov ecx, 0
jb 0x408420
mov ecx, ebx
add ecx, eax
mov esi, ebx
mov bl, byte [edi + ecx]
mov byte [edi + ebp], bl
inc ebp
mov eax, ebp
xor edx, edx
div esi
mov eax, dword [esp + 0x18]
inc eax
mov ecx, dword [esp + 0x68]
mov byte [esp + 0xf], bl
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x68], ecx
mov esi, 2
mov ebp, edx
mov edx, dword [esp + 0x20]
jmp 0x4083bb
mov dword [esp + 0x6c], ebp
mov edx, dword [esp + 8]
jmp 0x40875c
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 8]
jmp 0x4087bb
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
jmp 0x4086a4
cmp dword [esp + 0x1c], 0
jne 0x408c8f
mov eax, dword [esp + 0x80]
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x90]
shl eax, cl
movzx edx, byte [esp + 0xf]
mov ecx, dword [esp + 0x74]
shr edx, cl
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 4
mov ebx, dword [esp + 4]
jl 0x4084f5
cmp ecx, 9
ja 0x4084ee
add ecx, 0xfffffffd
jmp 0x4084f1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 8]
jmp 0x4085d0
add ecx, 0xfffffffa
mov dword [esp + 0x58], ecx
add eax, edx
lea eax, [eax + eax*2]
shl eax, 9
add eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x84], 0
je 0x40852f
mov eax, ebp
sub eax, dword [esp + 0x4c]
xor ecx, ecx
cmp eax, ebx
mov edx, dword [esp + 8]
jb 0x408521
mov ecx, ebx
add ecx, eax
mov al, byte [edi + ecx]
mov byte [esp + 0x4b], al
xor eax, eax
inc eax
jmp 0x408542
mov dword [esp + 0x6c], ebp
xor eax, eax
inc eax
mov edi, dword [esp]
mov edx, dword [esp + 8]
jmp 0x40863c
mov cl, byte [esp + 0x4b]
mov esi, eax
mov eax, ecx
shr al, 7
movzx eax, al
add cl, cl
mov byte [esp + 0x4b], cl
mov dword [esp + 0x34], eax
shl eax, 9
add eax, dword [esp + 0x38]
lea ecx, [eax + esi*2 + 0x200]
mov eax, edx
shr eax, 0xb
mov dword [esp + 0x44], ecx
mov ebx, edx
movzx edx, word [ecx]
imul eax, edx
add esi, esi
mov ecx, dword [esp]
sub ecx, eax
jae 0x40859e
mov dword [esp + 0x28], esi
mov edi, 0x800
sub edi, edx
shr edi, 5
add edi, edx
mov dword [esp + 0x1c], 0
mov edx, eax
jmp 0x4085be
sub ebx, eax
mov eax, edx
shr eax, 5
sub edx, eax
or esi, 1
mov dword [esp + 0x28], esi
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov edi, edx
mov eax, ebx
mov dword [esp], ecx
mov edx, ebx
mov ecx, dword [esp + 0x44]
mov word [ecx], di
cmp eax, 0x1000000
mov edi, dword [esp + 0x5c]
jae 0x408603
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409464
shl edx, 8
mov ebx, ecx
mov esi, edx
mov edx, dword [esp]
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov edx, esi
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x408627
mov eax, dword [esp + 0x28]
cmp eax, 0x100
mov dword [esp + 0x34], ebx
jl 0x408542
jmp 0x4087a4
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
jmp 0x4086f6
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax*2]
mov esi, eax
mov eax, edx
shr eax, 0xb
mov ebx, ecx
mov ebp, edx
movzx edx, word [ecx]
imul eax, edx
add esi, esi
mov ecx, edi
sub ecx, eax
jae 0x408673
mov dword [esp + 0x28], esi
mov dword [esp], edi
mov edi, 0x800
sub edi, edx
shr edi, 5
add edi, edx
mov edx, eax
jmp 0x40868c
sub ebp, eax
mov eax, edx
shr eax, 5
sub edx, eax
or esi, 1
mov dword [esp + 0x28], esi
mov edi, edx
mov eax, ebp
mov dword [esp], ecx
mov edx, ebp
mov ecx, ebx
mov word [ebx], di
cmp eax, 0x1000000
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 4]
jae 0x4086db
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409446
shl edx, 8
mov esi, edx
mov edx, dword [esp]
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov edx, esi
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
cmp eax, 0x100
jge 0x4087b3
mov dword [esp + 0x6c], ebp
mov edi, dword [esp]
jmp 0x40863c
cmp eax, 0xff
jg 0x408798
mov ebp, edx
shr edx, 0xb
mov ecx, dword [esp + 0x38]
movzx ecx, word [ecx + eax*2]
imul edx, ecx
lea esi, [eax + eax]
mov ebx, dword [esp]
sub ebx, edx
jae 0x408729
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
jmp 0x40873c
sub ebp, edx
mov edx, ecx
shr edx, 5
sub ecx, edx
or esi, 1
mov edi, ecx
mov dword [esp], ebx
mov edx, ebp
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax*2]
mov word [ecx], di
cmp edx, 0x1000000
mov eax, esi
mov edi, dword [esp + 0x5c]
jae 0x4086f6
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4093ed
shl edx, 8
mov esi, edx
mov edx, dword [esp]
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov edx, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
jmp 0x4086f6
mov esi, dword [esp + 0x24]
mov dword [esp + 0x58], esi
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x28], eax
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 0x44], ecx
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x4093bd
inc eax
mov ecx, dword [esp + 0x68]
mov dl, byte [esp + 0xf]
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x68], ecx
dec ebx
mov dword [esp + 0x60], ebx
mov byte [edi + ebp], dl
inc ebp
mov ecx, eax
mov eax, ebp
xor edx, edx
div dword [esp + 4]
mov eax, ecx
mov esi, 2
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], ecx
jmp 0x40844a
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x1c]
jmp 0x408a52
cmp dword [esp + 0x1c], 0
je 0x408b0b
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x78]
jmp 0x408b13
mov ecx, dword [esp + 0x28]
add dword [esp + 0x2c], ecx
mov esi, dword [esp + 0x88]
mov ebx, dword [esp + 4]
jmp 0x408391
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 4]
jmp 0x408f4a
cmp dword [esp + 0x1c], 1
jne 0x408b1c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
lea ebx, [ecx + eax*2 + 0x198]
mov dword [esp + 0x54], 8
jmp 0x408ebd
cmp dword [esp + 0x1c], 0
je 0x408be2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
lea ebx, [ecx + eax*2 + 0x1c8]
mov dword [esp + 0x54], 0xb
jmp 0x408ebd
mov ebx, dword [esp + 4]
jmp 0x408ce3
cmp dword [esp + 0x1c], 0
je 0x408c43
add dword [esp + 0x38], 0x204
mov dword [esp + 0x70], 0x14
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], 8
mov eax, 0x10
mov ecx, 8
jmp 0x408a56
cmp dword [esp + 0x10], 0
je 0x40948e
mov eax, dword [esp + 0x30]
mov ch, byte [eax]
cmp ch, 0xe1
ja case.default.0x4083c8
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 ebx, [edx + edx*8]
sub ch, bl
movzx esi, ch
xor ebx, ebx
dec ebx
mov edi, ebx
shl edi, cl
mov dword [esp + 0x8c], edi
mov edi, ebx
mov ecx, edx
shl edi, cl
mov dword [esp + 0x80], edi
mov dword [esp + 0x90], esi
add eax, esi
mov edi, 0x300
mov ecx, eax
shl edi, cl
lea esi, [edi + edi + 0xe6c]
mov eax, dword [esp + 0x64]
cmp esi, eax
jne 0x408b75
mov esi, eax
jmp 0x408b99
cmp dword [esp + 0x1c], 0
je 0x408cb5
mov eax, dword [esp + 0x38]
lea ebx, [eax + 2]
mov dword [esp + 0x54], 0x13
jmp 0x408ebd
mov ebx, dword [esp + 4]
jmp 0x408f9c
mov ebx, dword [esp + 4]
jmp 0x408e92
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x44]
jmp 0x408ec9
xor eax, eax
cmp dword [esp + 0x24], 7
setge al
lea eax, [eax + eax*2 + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 4]
jmp 0x40910f
cmp dword [esp + 0x1c], 0
je 0x408c20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
lea ebx, [ecx + eax*2 + 0x1b0]
mov dword [esp + 0x54], 0xa
jmp 0x408ebd
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x4c]
jmp 0x409013
mov eax, dword [esp + 0x2c]
cmp eax, 3
jl 0x408a24
mov eax, 3
shl eax, 7
mov ecx, dword [esp + 0x40]
lea eax, [ecx + eax + 0x360]
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], 0x19
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], 6
mov ecx, 6
mov eax, dword [esp + 0x2c]
mov edi, dword [esp]
jmp 0x408d7f
mov dword [esp + 0x54], 0x12
mov ebx, dword [esp + 0x38]
jmp 0x408ebd
mov ebx, dword [esp + 0x28]
cmp ebx, 4
jl 0x408b6a
mov dword [esp + 0x14], esi
mov esi, ebx
shr esi, 1
lea ecx, [esi - 1]
mov edx, ebx
and edx, 1
or edx, 2
mov dword [esp + 0x74], ecx
shl edx, cl
cmp ebx, 0xd
ja 0x408c7f
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + edx*2]
add ebx, ebx
sub ecx, ebx
add ecx, 0x55e
mov dword [esp + 0x38], ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], 0
xor ecx, ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
jmp 0x409098
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 4]
jmp 0x409136
mov ebx, dword [esp + 0x34]
jmp 0x408e2e
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
mov ebx, dword [esp + 4]
jmp 0x4091eb
mov eax, dword [esp + 0x4c]
mov ecx, edx
mov edx, dword [esp + 0x3c]
jmp 0x408bec
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], ecx
jmp 0x408be8
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 + 0x40]
lea ebx, [eax + 0x664]
mov dword [esp + 0x54], 0x12
mov dword [esp + 0x88], 0x16
mov eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
jmp 0x408ec9
mov ecx, ebx
mov ebx, dword [esp + 4]
jmp 0x40910e
mov eax, dword [esp + 0x40]
test eax, eax
je 0x408b84
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x40], eax
test eax, eax
je 0x409375
mov dword [esp + 0x14], esi
not dword [esp + 0x8c]
not dword [esp + 0x80]
add edi, 0x736
mov eax, dword [esp + 0x40]
mov word [eax + edi*2 - 2], 0x400
dec edi
jne 0x408bb5
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0
xor esi, esi
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 4]
jmp 0x408d17
mov eax, edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
lea ebx, [esi + 0xa68]
mov dword [esp + 0x54], 0x12
mov dword [esp + 0x88], 0x15
mov ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], edx
jmp 0x408ec9
mov eax, dword [esp + 0x24]
shl eax, 5
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
lea ebx, [eax + ecx*2 + 0x1e0]
mov dword [esp + 0x54], 9
jmp 0x408ebd
mov eax, dword [esp + 0x7c]
shl eax, 4
mov ecx, dword [esp + 0x38]
lea ecx, [eax + ecx + 0x104]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], 0x14
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], 3
mov eax, 8
mov ecx, 3
jmp 0x408a56
add esi, 0xfffffffb
mov dword [esp + 0x28], 0
jmp 0x408fd9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
lea ebx, [ecx + eax*2 + 0x180]
mov dword [esp + 0x54], 7
xor eax, eax
inc eax
mov dword [esp + 0x84], eax
jmp 0x408ebd
mov eax, dword [esp + 0x7c]
shl eax, 4
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], 0x14
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], 3
xor eax, eax
jmp 0x408c75
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
je 0x409423
mov edx, dword [esp + 0x30]
movzx eax, byte [edx]
mov esi, dword [esp + 0x34]
lea ecx, [esi*8]
shl eax, cl
or dword [esp + 0x1c], eax
inc esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
inc edx
mov dword [esp + 0x30], edx
dec dword [esp + 0x10]
cmp esi, 4
jge 0x408d33
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
jmp 0x408ce3
cmp dword [esp + 0x1c], ebx
je 0x408d65
mov dword [esp + 0x18], eax
test edi, edi
je 0x408d48
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x1c]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test eax, eax
mov ebx, esi
mov eax, dword [esp + 0x18]
je case.default.0x4083c8
mov byte [ebx + edi - 1], 0
mov dword [esp + 0x34], 5
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
jmp 0x408e7a
mov ebx, dword [esp + 4]
mov dword [esp + 0x34], ecx
test ecx, ecx
jle 0x408dd4
mov dword [esp + 4], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
lea ecx, [eax + edx*2]
mov ebx, dword [esp + 8]
mov eax, ebx
shr eax, 0xb
mov dword [esp + 0x44], ecx
movzx ecx, word [ecx]
imul eax, ecx
add edx, edx
mov dword [esp], edi
sub edi, eax
jae 0x408dfd
mov dword [esp + 0x50], edx
mov edx, 0x800
sub edx, ecx
shr edx, 5
add edx, ecx
mov dword [esp + 8], eax
jmp 0x408e18
mov dword [esp], edi
mov dword [esp + 0x2c], eax
xor eax, eax
dec eax
mov ecx, dword [esp + 0x1c]
shl eax, cl
add eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
jmp 0x408391
sub ebx, eax
mov eax, ecx
shr eax, 5
sub ecx, eax
or edx, 1
mov dword [esp + 0x50], edx
mov edx, ecx
mov dword [esp + 8], ebx
mov eax, ebx
mov dword [esp], edi
mov ecx, dword [esp + 0x44]
mov word [ecx], dx
cmp eax, 0x1000000
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x34]
jae 0x408e5f
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp]
mov esi, dword [esp + 8]
je 0x409382
shl esi, 8
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov eax, esi
mov dword [esp + 0x5c], edi
dec ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp]
mov ecx, ebx
mov edx, dword [esp + 0x20]
jmp 0x408d7f
mov ecx, dword [esp + 0x34]
sub ecx, 1
jae 0x408f94
xor ecx, ecx
dec ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
and ecx, eax
mov eax, dword [esp + 0x24]
shl eax, 5
add eax, dword [esp + 0x40]
mov dword [esp + 0x7c], ecx
lea ebx, [eax + ecx*2]
mov dword [esp + 0x54], 6
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov esi, edi
mov edx, dword [esp + 8]
mov eax, edx
shr eax, 0xb
mov dword [esp + 0x44], ebx
movzx ebx, word [ebx]
imul eax, ebx
mov ecx, dword [esp]
sub ecx, eax
jae 0x408eff
mov edi, 0x800
sub edi, ebx
shr edi, 5
add edi, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
jmp 0x408f1a
sub edx, eax
mov eax, ebx
shr eax, 5
sub ebx, eax
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov edi, ebx
mov dword [esp + 8], edx
mov eax, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov word [ecx], di
cmp eax, 0x1000000
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
mov edi, esi
mov esi, ecx
mov edx, eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 4]
jae 0x408391
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40939c
shl dword [esp + 8], 8
mov edx, dword [esp]
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
jmp 0x408391
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4093b6
mov edx, dword [esp]
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
jmp 0x408e7a
test esi, esi
jle 0x409055
mov ebx, esi
mov ecx, dword [esp + 8]
shr ecx, 1
xor eax, eax
cmp dword [esp], ecx
setae al
mov esi, dword [esp + 0x28]
lea esi, [eax + esi*2]
mov dword [esp + 0x28], esi
mov eax, ecx
jae 0x408ffe
xor eax, eax
sub dword [esp], eax
cmp dword [esp + 8], 0x2000000
mov dword [esp + 0x34], ebx
mov esi, dword [esp + 0x14]
jae 0x409046
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x10]
test eax, eax
mov edx, dword [esp + 0x30]
mov ebx, dword [esp]
je 0x409433
shl ecx, 8
shl ebx, 8
dec eax
mov dword [esp + 0x10], eax
movzx eax, byte [edx]
inc edx
mov dword [esp + 0x30], edx
or ebx, eax
mov dword [esp], ebx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
dec esi
mov dword [esp + 8], ecx
jmp 0x408fd9
mov dword [esp + 0x5c], edi
mov esi, dword [esp + 0x28]
shl esi, 4
add edx, esi
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x40]
add eax, 0x644
mov dword [esp + 0x38], eax
xor eax, eax
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x74], 4
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
cmp ecx, edi
jge 0x4090f2
mov dword [esp + 0x34], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
lea eax, [eax + ebx*2]
mov ecx, edx
shr edx, 0xb
mov dword [esp + 0x44], eax
movzx edi, word [eax]
imul edx, edi
mov eax, dword [esp]
sub eax, edx
jae 0x409199
mov eax, ebx
mov ebx, 0x800
sub ebx, edi
shr ebx, 5
add ebx, edi
add eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 8], edx
jmp 0x4091d0
mov dword [esp + 0x34], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x4c]
add ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x5c]
inc ecx
test ecx, ecx
mov dword [esp + 0x20], edx
je 0x40940f
mov dword [esp + 0x4c], ecx
cmp ecx, eax
ja case.default.0x4083c8
mov ecx, dword [esp + 0x2c]
lea eax, [eax + ecx + 2]
mov dword [esp + 0x18], eax
add ecx, 2
mov eax, dword [esp + 0x60]
sub eax, 1
jb 0x409242
mov dword [esp + 0x60], eax
mov eax, ebp
sub eax, dword [esp + 0x4c]
xor edx, edx
cmp eax, ebx
jb 0x409155
mov edx, ebx
add edx, eax
mov esi, ebx
mov bl, byte [edi + edx]
mov byte [edi + ebp], bl
inc ebp
mov eax, ebp
xor edx, edx
div esi
mov eax, dword [esp + 0x68]
mov byte [esp + 0xf], bl
mov byte [eax], bl
mov ebx, esi
inc eax
mov dword [esp + 0x68], eax
lea eax, [ecx - 1]
cmp ecx, 1
mov ecx, eax
mov ebp, edx
jg 0x409136
mov dword [esp + 0x2c], eax
mov esi, 2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
jmp 0x408391
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x28]
mov dword [esp], edx
mov edx, dword [esp + 0x34]
bts esi, edx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x14]
sub ecx, dword [esp]
mov edx, edi
shr edx, 5
sub edi, edx
lea ebx, [ebx + ebx + 1]
mov dword [esp + 0x50], ebx
mov ebx, edi
mov dword [esp + 8], ecx
mov edx, ecx
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov word [ecx], bx
cmp edx, 0x1000000
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 4]
jae 0x40922c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp]
mov esi, dword [esp + 8]
je 0x4093d3
shl esi, 8
shl edx, 8
dec eax
mov dword [esp + 0x10], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x30], ecx
or edx, eax
mov dword [esp], edx
mov edx, esi
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x34]
inc ecx
jmp 0x40909c
xor ebx, ebx
inc ebx
jmp 0x409375
mov dword [esp + 0x60], 0
mov esi, 0x1c
mov edx, ecx
jmp 0x40926c
xor ebx, ebx
dec ebx
jmp 0x409375
mov dword [esp + 0x60], 0
mov esi, 0x1b
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x98]
mov dword [eax], esi
mov ecx, dword [esp + 0x54]
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 + 0x64]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x28], ecx
mov cl, byte [esp + 0xf]
mov byte [eax + 0x2c], cl
mov cl, byte [esp + 0x4b]
mov byte [eax + 0x2d], cl
movzx ecx, word [esp + 0x96]
mov word [eax + 0x2e], cx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x44], ecx
mov ecx, dword [esp + 0x1c]
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 + 0x4c]
mov dword [eax + 0x5c], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x64], ecx
mov ecx, dword [esp + 0x78]
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 dword [eax + 0x74], ebp
mov ecx, dword [esp + 8]
mov dword [eax + 0x78], ecx
mov ecx, dword [esp]
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], edi
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x84], ecx
xor ebx, ebx
mov eax, ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 0x18
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], ebx
jmp 0x409485
mov esi, 5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
jmp 0x409268
mov esi, 3
jmp 0x409426
mov dword [esp + 0x18], eax
mov esi, 0x1a
mov dword [esp + 0x60], 0
jmp 0x409479
mov esi, 0x10
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
jmp 0x409268
mov dword [esp + 8], edx
mov esi, 0xe
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 0x6c]
jmp 0x40926c
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], 0
xor edx, edx
dec edx
jmp 0x40926c
xor esi, esi
inc esi
mov dword [esp + 0x10], 0
jmp 0x409268
mov esi, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 8], ecx
jmp 0x409481
mov dword [esp + 8], edx
mov esi, 0xf
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
jmp 0x409268
mov dword [esp + 8], edx
mov dword [esp + 0x44], ecx
mov esi, 0xd
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 4]
jmp 0x40926c
mov dword [esp + 0x10], 0
xor esi, esi
jmp 0x409481