Function at 0x408501
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 0x40956f
mov dword [esp + 0x5c], eax
movzx eax, word [ecx + 0x2e]
mov word [esp + 0x92], ax
mov eax, dword [ecx + 0x84]
mov dword [esp + 0x48], eax
mov edi, dword [ecx + 0x80]
mov esi, dword [ecx + 0x7c]
mov eax, dword [ecx + 0x78]
mov dword [esp + 0xc], eax
mov ebx, dword [ecx + 0x74]
mov al, byte [ecx + 0x2d]
mov byte [esp + 0x3f], al
mov al, byte [ecx + 0x2c]
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x5c]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x50]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x4c]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x38], eax
mov ebp, dword [ecx + 0x28]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x6c], edx
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x84], edx
mov eax, dword [ecx]
mov dword [esp + 0x94], ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x58], ecx
mov dword [esp], esi
mov ecx, dword [esp + 0x48]
add ecx, 0xe6c
mov dword [esp + 0x30], ecx
mov ecx, 8
sub ecx, dword [esp + 0x8c]
mov dword [esp + 0x98], ecx
mov dword [esp + 8], edi
mov esi, eax
mov edi, ebx
mov edx, dword [esp + 0x60]
cmp esi, 0x1c
ja case.default.0x408656
mov dword [esp + 0x28], ebp
jmp dword [esi*4 + 0x40bb50]
cmp dword [esp + 0x20], 0
jne 0x408e13
test ebp, ebp
je case.default.0x408656
xor eax, eax
cmp dword [esp + 4], 7
setge al
lea eax, [eax*2 + 9]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
sub eax, 1
jb 0x40959d
mov dword [esp + 0x4c], eax
mov eax, edi
sub eax, dword [esp + 0x50]
xor ecx, ecx
mov esi, edi
mov edi, dword [esp + 0x64]
cmp eax, edi
mov edx, edi
cmovb edx, ecx
add edx, eax
mov eax, dword [esp + 8]
mov bl, byte [eax + edx]
mov byte [eax + esi], bl
inc esi
mov eax, esi
xor edx, edx
div edi
mov ebp, dword [esp + 0x28]
inc ebp
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x13], bl
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x6c], ecx
mov esi, 2
mov edi, edx
jmp 0x408645
mov ebx, edi
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xc]
jmp 0x40898d
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
jmp 0x4089f4
cmp dword [esp + 0x20], 0
jne 0x408faf
mov eax, dword [esp + 0x7c]
and eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x8c]
shl eax, cl
movzx edx, byte [esp + 0x13]
mov ecx, dword [esp + 0x98]
shr edx, cl
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 4]
cmp ecx, 4
mov ebp, dword [esp + 8]
jl 0x40877d
cmp ecx, 9
ja 0x408776
add ecx, 0xfffffffd
jmp 0x408779
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xc]
jmp 0x408940
mov ebx, edi
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xc]
mov ebp, dword [esp]
mov ecx, dword [esp + 0x1c]
jmp 0x40886e
add ecx, 0xfffffffa
mov dword [esp + 0x54], ecx
add eax, edx
lea eax, [eax + eax*2]
shl eax, 9
add eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x80], 0
je 0x4087c1
mov ebx, edi
mov eax, edi
sub eax, dword [esp + 0x50]
xor ecx, ecx
mov edx, dword [esp + 0x64]
cmp eax, edx
cmovae ecx, edx
add ecx, eax
mov al, byte [ebp + ecx]
mov byte [esp + 0x3f], al
xor eax, eax
inc eax
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x54]
jmp 0x4087d1
mov dword [esp + 0x14], edi
xor eax, eax
inc eax
mov edx, dword [esp + 0xc]
jmp 0x4088d9
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], ebx
mov cl, byte [esp + 0x3f]
mov edi, eax
mov eax, ecx
shr al, 7
movzx eax, al
add cl, cl
mov byte [esp + 0x3f], cl
mov dword [esp + 0x1c], eax
shl eax, 9
add eax, dword [esp + 0x38]
lea ecx, [eax + edi*2]
add ecx, 0x200
mov eax, edx
shr eax, 0xb
mov esi, edx
mov dword [esp + 0x24], ecx
movzx edx, word [ecx]
imul eax, edx
add edi, edi
mov ecx, dword [esp]
mov ebp, ecx
sub ecx, eax
jae 0x408839
mov dword [esp + 0x2c], edi
mov edi, 0x800
sub edi, edx
shr edi, 5
add edi, edx
mov dword [esp + 0x20], 0
mov edx, eax
jmp 0x408858
sub esi, eax
mov eax, edx
shr eax, 5
sub edx, eax
or edi, 1
mov dword [esp + 0x2c], edi
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
mov edi, edx
mov eax, esi
mov ebp, ecx
mov edx, esi
mov ecx, dword [esp + 0x24]
mov word [ecx], di
cmp eax, 0x1000000
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
jae 0x408897
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409817
shl edx, 8
shl ebp, 8
dec eax
mov dword [esp + 0x18], eax
mov esi, ecx
mov ecx, dword [esp + 0x34]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
mov ecx, esi
or ebp, eax
mov dword [esp], ebp
mov eax, dword [esp + 0x20]
cmp ecx, eax
jne 0x4088bc
mov ecx, eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x100
mov esi, dword [esp + 0x54]
jl 0x4087d1
jmp 0x408a3c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
jmp 0x408996
mov ebp, dword [esp]
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax*2]
mov edi, eax
mov eax, edx
shr eax, 0xb
mov esi, edx
mov dword [esp + 0x24], ecx
movzx edx, word [ecx]
imul eax, edx
add edi, edi
mov ecx, ebp
sub ecx, eax
jae 0x408915
mov dword [esp], ebp
mov dword [esp + 0x2c], edi
mov edi, 0x800
sub edi, edx
shr edi, 5
add edi, edx
mov edx, eax
jmp 0x40892e
sub esi, eax
mov eax, edx
shr eax, 5
sub edx, eax
or edi, 1
mov dword [esp + 0x2c], edi
mov edi, edx
mov eax, esi
mov dword [esp], ecx
mov edx, esi
mov ecx, dword [esp + 0x24]
mov word [ecx], di
cmp eax, 0x1000000
mov edi, dword [esp + 0x14]
jae 0x40896f
mov esi, edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4097ee
shl edx, 8
mov edi, dword [esp]
shl edi, 8
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or edi, eax
mov dword [esp], edi
mov edi, esi
mov eax, dword [esp + 0x2c]
cmp eax, 0x100
jge 0x408983
mov dword [esp + 0x14], edi
jmp 0x4088d9
mov ebx, edi
mov byte [esp + 0x13], al
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
jmp 0x408a57
cmp eax, 0xff
jg 0x408a2c
mov esi, edx
shr edx, 0xb
mov ecx, dword [esp + 0x38]
movzx ecx, word [ecx + eax*2]
imul edx, ecx
lea ebp, [eax + eax]
mov ebx, dword [esp]
sub ebx, edx
jae 0x4089c9
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
jmp 0x4089dc
sub esi, edx
mov edx, ecx
shr edx, 5
sub ecx, edx
or ebp, 1
mov edi, ecx
mov dword [esp], ebx
mov edx, esi
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax*2]
mov word [ecx], di
mov eax, ebp
cmp edx, 0x1000000
jae 0x408996
mov dword [esp + 0x2c], ebp
mov ebp, ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp]
je 0x40976a
shl edx, 8
shl esi, 8
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or esi, eax
mov dword [esp], esi
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x408996
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 4]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x80], 0
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], al
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
test edi, edi
mov dword [esp + 0x1c], ecx
je 0x409728
mov dword [esp + 0xc], edx
inc ebp
mov ecx, dword [esp + 0x6c]
mov dl, byte [esp + 0x13]
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x6c], ecx
dec edi
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 8]
mov eax, ebx
mov byte [ecx + ebx], dl
inc eax
xor edx, edx
div dword [esp + 0x64]
mov esi, 2
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov edi, edx
jmp 0x408645
mov ebx, edi
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
jmp 0x408f85
cmp dword [esp + 0x20], 0
je 0x408ee4
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 4]
lea edi, [eax + ebp*2]
add edi, 0x1c8
mov dword [esp + 0x58], 0xb
jmp 0x409200
mov esi, dword [esp + 8]
jmp 0x4091cf
mov ebx, edi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 8]
mov esi, dword [esp]
jmp 0x40928d
mov ebx, edi
cmp dword [esp + 0x20], 0
je 0x408f4d
add dword [esp + 0x38], 0x204
mov dword [esp + 0x70], 0x14
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], 8
mov eax, 0x10
mov ecx, 8
jmp 0x408f85
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
jmp 0x4092d9
cmp dword [esp + 0x18], 0
je 0x409843
mov eax, dword [esp + 0x34]
mov ch, byte [eax]
cmp ch, 0xe1
ja case.default.0x408656
mov esi, edi
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 ebp, [edx + edx*8]
xor ebx, ebx
dec ebx
mov edi, ebx
shl edi, cl
mov dword [esp + 0x88], edi
mov edi, ebx
mov cl, dl
shl edi, cl
mov dword [esp + 0x7c], edi
mov edx, ebp
sub ch, dl
movzx ecx, ch
mov dword [esp + 0x8c], ecx
add eax, ecx
mov edi, 0x300
mov ecx, eax
shl edi, cl
lea ecx, [edi*2 + 0xe6c]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jne 0x408e7a
mov dword [esp + 0x1c], eax
jmp 0x408ea1
cmp dword [esp + 0x20], 0
je 0x408fdb
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x38]
lea edi, [eax + 2]
mov dword [esp + 0x58], 0x13
jmp 0x408ca9
mov esi, edi
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
jmp 0x40900f
cmp dword [esp + 0x20], 0
mov dword [esp + 0x14], edi
je 0x408f26
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 4]
lea edi, [eax + ebp*2]
add edi, 0x1b0
mov dword [esp + 0x58], 0xa
jmp 0x409200
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 8]
mov ebx, dword [esp]
jmp 0x409530
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
jmp 0x408cb1
cmp dword [esp + 0x20], 1
mov dword [esp + 0x14], edi
jne 0x408e22
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 4]
lea edi, [eax + ebp*2]
add edi, 0x198
mov dword [esp + 0x58], 8
jmp 0x409200
mov dword [esp + 0x14], edi
mov dword [esp + 0x58], 0x12
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 4]
jmp 0x409208
mov ebx, edi
mov ecx, dword [esp + 0x5c]
cmp ecx, 3
mov eax, 3
cmovl eax, ecx
shl eax, 7
mov edi, dword [esp + 0x48]
add eax, edi
add eax, 0x360
mov dword [esp + 0x38], eax
mov eax, ecx
mov dword [esp + 0x70], 0x19
xor ecx, ecx
inc ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], 6
mov ecx, 6
jmp 0x408f85
mov ebx, edi
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x84]
mov edi, dword [esp + 8]
mov esi, dword [esp]
jmp 0x408619
cmp dword [esp + 0x20], 0
mov esi, dword [esp + 0x40]
mov ecx, esi
mov eax, dword [esp + 0x78]
cmove ecx, eax
cmove eax, esi
mov dword [esp + 0x78], ecx
jmp 0x408eea
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x409361
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
cmp esi, 4
mov dword [esp + 0x14], edi
jl 0x408e68
mov ebx, esi
shr ebx, 1
lea eax, [ebx - 1]
mov edx, esi
and edx, 1
or edx, 2
mov ecx, eax
shl edx, cl
cmp esi, 0xd
mov dword [esp + 0x50], edx
ja 0x408f91
mov ecx, dword [esp + 0x48]
lea ecx, [ecx + edx*2]
add esi, esi
sub ecx, esi
add ecx, 0x55e
mov dword [esp + 0x38], ecx
mov ecx, eax
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov eax, ecx
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
jmp 0x4093d8
mov edx, edi
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 8]
jmp 0x409475
mov ebx, edi
mov edi, dword [esp + 8]
mov esi, dword [esp]
mov ecx, dword [esp + 0x1c]
jmp 0x409172
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], esi
xor eax, eax
cmp dword [esp + 4], 7
setge al
lea eax, [eax + eax*2 + 8]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ebx, dword [esp]
jmp 0x409446
mov eax, dword [esp + 0x50]
mov ecx, edx
mov edx, dword [esp + 0x40]
jmp 0x408eee
xor eax, eax
cmp dword [esp + 4], 7
setge al
lea ebp, [eax + eax*2 + 7]
mov eax, dword [esp + 0x48]
lea edi, [eax + 0x664]
mov dword [esp + 0x58], 0x12
mov dword [esp + 0x84], 0x16
mov eax, edi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
jmp 0x409208
mov ecx, esi
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ebx, dword [esp]
jmp 0x409445
mov eax, dword [esp + 0x48]
test eax, eax
je 0x408e89
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x48], eax
test eax, eax
je 0x4096b2
not dword [esp + 0x88]
not dword [esp + 0x7c]
add edi, 0x735
mov eax, dword [esp + 0x48]
mov word [eax + edi*2], 0x400
add edi, 0xffffffff
jb 0x408eb6
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], 0
xor ecx, ecx
mov edi, dword [esp + 8]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
jmp 0x409043
mov eax, edx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
lea edi, [ecx + 0xa68]
mov dword [esp + 0x58], 0x12
mov dword [esp + 0x84], 0x15
mov ecx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], eax
jmp 0x409208
mov ebp, dword [esp + 4]
mov eax, ebp
shl eax, 5
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
lea edi, [eax + ecx*2]
add edi, 0x1e0
mov dword [esp + 0x58], 9
jmp 0x409200
mov eax, dword [esp + 0x74]
shl eax, 4
mov ecx, dword [esp + 0x38]
add ecx, eax
add ecx, 0x104
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], 0x14
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], 3
mov eax, 8
mov ecx, 3
mov edi, dword [esp + 8]
mov esi, dword [esp]
jmp 0x4090b8
add ebx, 0xfffffffb
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov eax, ebx
mov ecx, dword [esp + 4]
jmp 0x40931a
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 4]
lea edi, [eax + ebp*2]
add edi, 0x180
mov dword [esp + 0x58], 7
xor eax, eax
inc eax
mov dword [esp + 0x80], eax
jmp 0x409200
mov ebx, edi
mov eax, dword [esp + 0x74]
shl eax, 4
mov ecx, dword [esp + 0x38]
add ecx, eax
add ecx, 4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], 0x14
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], 3
xor eax, eax
jmp 0x408f80
mov ebx, esi
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x18], 0
je 0x4097ab
mov edx, dword [esp + 0x34]
movzx eax, byte [edx]
mov esi, ecx
lea ecx, [ecx*8]
shl eax, cl
mov ecx, esi
or dword [esp + 0x20], eax
inc ecx
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x28]
mov esi, ebx
inc edx
mov dword [esp + 0x34], edx
dec dword [esp + 0x18]
cmp ecx, 4
jge 0x409057
mov dword [esp + 0x68], eax
jmp 0x40900f
mov ebx, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x64]
jne 0x40906d
mov ecx, dword [esp + 0x64]
mov eax, edi
mov edi, esi
jmp 0x40909d
mov dword [esp + 0x14], esi
mov esi, ebp
test edi, edi
je 0x409080
mov ebp, edi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x20]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, edi
test eax, eax
mov ebp, esi
mov edi, dword [esp + 0x14]
je case.default.0x408656
mov dword [esp + 0x64], ecx
mov byte [ecx + eax - 1], 0
mov ecx, 5
mov edx, dword [esp + 0xc]
mov esi, eax
mov eax, ebx
jmp 0x4091b3
test ecx, ecx
jle 0x40910f
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
mov edx, esi
mov dword [esp + 8], edi
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
lea ecx, [eax + ebx*2]
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 0xb
mov ebp, ecx
movzx ecx, word [ecx]
imul eax, ecx
add ebx, ebx
mov dword [esp], edx
mov edi, edx
sub edi, eax
jae 0x409139
mov dword [esp + 0x44], ebx
mov edx, 0x800
sub edx, ecx
shr edx, 5
add edx, ecx
mov dword [esp + 0xc], eax
jmp 0x409154
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
xor eax, eax
dec eax
mov ecx, dword [esp + 0x20]
shl eax, cl
add eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x28]
jmp 0x408619
sub esi, eax
mov eax, ecx
shr eax, 5
sub ecx, eax
or ebx, 1
mov dword [esp + 0x44], ebx
mov edx, ecx
mov dword [esp + 0xc], esi
mov eax, esi
mov dword [esp], edi
mov dword [esp + 0x24], ebp
mov word [ebp], dx
cmp eax, 0x1000000
mov edi, dword [esp + 8]
mov esi, dword [esp]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
jae 0x4091a1
mov ebp, ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
je 0x4096bf
shl edx, 8
shl esi, 8
dec eax
mov dword [esp + 0x18], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or esi, eax
mov eax, edx
mov ecx, ebp
dec ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
jmp 0x4090b8
sub ecx, 1
jae 0x4092d1
mov dword [esp + 0xc], edx
xor ecx, ecx
dec ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], edi
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x28], ebp
and ecx, ebp
mov ebp, dword [esp + 4]
mov eax, ebp
shl eax, 5
add eax, dword [esp + 0x48]
mov dword [esp + 0x74], ecx
lea edi, [eax + ecx*2]
mov dword [esp + 0x58], 6
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0xc]
mov ebx, esi
shr ebx, 0xb
mov dword [esp + 0x24], edi
movzx edi, word [edi]
imul ebx, edi
mov ecx, dword [esp]
sub ecx, ebx
mov dword [esp + 4], ebp
jae 0x409240
mov eax, 0x800
sub eax, edi
shr eax, 5
add eax, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], ebx
jmp 0x40925b
sub esi, ebx
mov eax, edi
shr eax, 5
sub edi, eax
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
mov eax, edi
mov dword [esp + 0xc], esi
mov ebx, esi
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov word [ecx], ax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], edx
cmp ebx, 0x1000000
mov edi, dword [esp + 8]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp]
mov ebx, dword [esp + 0x14]
jae 0x408619
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4096e1
shl dword [esp + 0xc], 8
shl esi, 8
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or esi, eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x28]
jmp 0x408619
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], eax
mov ebx, edi
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40970b
mov edi, dword [esp]
shl edi, 8
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or edi, eax
mov dword [esp], edi
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edi, ebx
jmp 0x4091b3
test eax, eax
jle 0x4093a2
mov dword [esp + 0x1c], eax
mov esi, edx
shr esi, 1
xor eax, eax
mov dword [esp + 4], ecx
mov ebx, edx
xor edx, edx
mov ebp, dword [esp]
cmp ebp, esi
setae dl
cmovae eax, esi
mov ecx, edi
mov edi, dword [esp + 0x2c]
lea edi, [edx + edi*2]
mov dword [esp + 0x2c], edi
mov edi, ecx
sub ebp, eax
mov dword [esp], ebp
cmp ebx, 0x2000000
mov ecx, dword [esp + 4]
mov edx, esi
jae 0x409396
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x34]
mov esi, dword [esp]
je 0x4097d0
shl edx, 8
shl esi, 8
dec eax
mov dword [esp + 0x18], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or esi, eax
mov dword [esp], esi
mov esi, edx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
dec eax
mov edx, esi
jmp 0x40931a
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x2c]
shl ebp, 4
add dword [esp + 0x50], ebp
mov eax, dword [esp + 0x48]
add eax, 0x644
mov dword [esp + 0x38], eax
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], 0
mov eax, 4
xor ecx, ecx
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp]
cmp ecx, eax
jge 0x409435
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 8], edi
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
lea eax, [eax + esi*2]
mov esi, edx
shr edx, 0xb
mov dword [esp + 0x24], eax
movzx edi, word [eax]
imul edx, edi
mov eax, ebx
sub eax, edx
mov dword [esp + 0x1c], ecx
jae 0x4094e4
mov dword [esp], ebx
mov ebx, 0x800
sub ebx, edi
shr ebx, 5
add ebx, edi
mov eax, dword [esp + 0x44]
add eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], edx
jmp 0x409512
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
inc ecx
test ecx, ecx
je 0x40977d
mov dword [esp + 0x50], ecx
cmp ecx, ebp
ja case.default.0x408656
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x14]
mov dword [esp], ebx
mov ecx, dword [esp + 0x5c]
add ebp, ecx
add ebp, 2
mov dword [esp + 0x28], ebp
add ecx, 2
mov esi, ecx
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x4c]
sub eax, 1
jb 0x409577
mov dword [esp + 0x4c], eax
mov eax, edx
mov ecx, edx
sub ecx, dword [esp + 0x50]
xor edx, edx
cmp ecx, ebx
mov ebx, edi
mov edi, dword [esp + 0x64]
cmovb edi, edx
add edi, ecx
mov cl, byte [ebx + edi]
mov edi, ebx
mov ebx, dword [esp + 0x64]
mov byte [edi + eax], cl
inc eax
xor edx, edx
div ebx
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x13], cl
mov byte [eax], cl
inc eax
mov dword [esp + 0x6c], eax
lea eax, [esi - 1]
cmp esi, 1
mov esi, eax
jg 0x40947b
mov dword [esp + 0x5c], eax
mov eax, 2
mov ebp, dword [esp + 0x28]
mov esi, dword [esp]
mov ebx, edx
jmp 0x408619
mov ebp, dword [esp + 0x2c]
bts ebp, ecx
mov dword [esp + 0x2c], ebp
sub esi, edx
mov edx, edi
shr edx, 5
sub edi, edx
mov ecx, dword [esp + 0x44]
lea ecx, [ecx*2 + 1]
mov dword [esp + 0x44], ecx
mov ebx, edi
mov dword [esp + 0xc], esi
mov edx, esi
mov dword [esp], eax
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov word [ecx], bx
cmp edx, 0x1000000
mov edi, dword [esp + 8]
mov ebx, dword [esp]
mov eax, dword [esp + 0x20]
jae 0x409565
mov esi, eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
je 0x409749
shl edx, 8
shl ebx, 8
dec eax
mov dword [esp + 0x18], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esp + 0x34], ecx
or ebx, eax
mov ebp, dword [esp + 0x28]
mov eax, esi
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x4093db
xor ebx, ebx
inc ebx
jmp 0x4096b2
mov dword [esp + 8], edi
xor ebx, ebx
mov ecx, 0x1c
mov dword [esp + 0x5c], esi
mov esi, dword [esp]
mov edi, edx
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
jmp 0x4095af
xor ebx, ebx
dec ebx
jmp 0x4096b2
xor ebx, ebx
mov ecx, 0x1b
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp]
mov eax, dword [esp + 0x94]
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ebx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x28], ecx
mov cl, byte [esp + 0x13]
mov byte [eax + 0x2c], cl
mov cl, byte [esp + 0x3f]
mov byte [eax + 0x2d], cl
movzx ecx, word [esp + 0x92]
mov word [eax + 0x2e], cx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ebp
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x4c], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 0x50], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x54], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x58], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x5c], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x64], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x68], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x6c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], esi
mov ecx, dword [esp + 8]
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x84], ecx
xor ebx, ebx
mov eax, ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 0x1c], ebp
mov ecx, 0x18
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x4c]
mov edi, ebx
mov ebx, eax
jmp 0x40958f
mov dword [esp + 8], edi
mov ecx, 5
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
jmp 0x409836
mov dword [esp + 8], esi
mov ecx, 3
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x4c]
mov esi, dword [esp]
jmp 0x409836
mov dword [esp + 0x28], ebp
mov ecx, 0x1a
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov esi, dword [esp]
mov ebp, dword [esp + 0x24]
mov edi, ebx
xor ebx, ebx
jmp 0x4095af
mov dword [esp + 8], edi
mov ecx, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], esi
mov esi, ebx
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x24]
jmp 0x4097a2
mov ecx, 0xe
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x4c]
jmp 0x4097a2
mov esi, ebx
mov dword [esp + 8], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x50], 0
xor eax, eax
dec eax
mov dword [esp + 0x5c], eax
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
jmp 0x4095af
mov dword [esp + 0x1c], ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
mov esi, dword [esp]
mov eax, ebx
mov ebx, edi
mov edi, eax
jmp 0x40958f
mov dword [esp + 8], edi
mov ecx, 0xc
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
jmp 0x40958f
mov ecx, 0xf
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp]
mov ebp, dword [esp + 0x24]
mov edi, esi
mov esi, eax
jmp 0x4095af
mov esi, ebp
mov dword [esp + 0x1c], ecx
mov ecx, 0xd
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x24]
mov edi, ebx
mov ebx, eax
jmp 0x4095af
mov dword [esp + 0x18], 0
xor ecx, ecx
mov ebx, dword [esp + 0x4c]
jmp 0x4095a4