Function at 0x407b85
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 0x408bf3
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.0x407cda
mov dword [esp + 0x28], ebp
jmp dword [esi*4 + 0x40aa20]
cmp dword [esp + 0x20], 0
jne 0x408497
test ebp, ebp
je case.default.0x407cda
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 0x408c21
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 0x407cc9
mov ebx, edi
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xc]
jmp 0x408011
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
jmp 0x408078
cmp dword [esp + 0x20], 0
jne 0x408633
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 0x407e01
cmp ecx, 9
ja 0x407dfa
add ecx, 0xfffffffd
jmp 0x407dfd
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xc]
jmp 0x407fc4
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 0x407ef2
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 0x407e45
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 0x407e55
mov dword [esp + 0x14], edi
xor eax, eax
inc eax
mov edx, dword [esp + 0xc]
jmp 0x407f5d
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 0x407ebd
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 0x407edc
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 0x407f1b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408e9b
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 0x407f40
mov ecx, eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x100
mov esi, dword [esp + 0x54]
jl 0x407e55
jmp 0x4080c0
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 0x40801a
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 0x407f99
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 0x407fb2
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 0x407ff3
mov esi, edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408e72
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 0x408007
mov dword [esp + 0x14], edi
jmp 0x407f5d
mov ebx, edi
mov byte [esp + 0x13], al
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
jmp 0x4080db
cmp eax, 0xff
jg 0x4080b0
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 0x40804d
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
jmp 0x408060
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 0x40801a
mov dword [esp + 0x2c], ebp
mov ebp, ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp]
je 0x408dee
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 0x40801a
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 0x408dac
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 0x407cc9
mov ebx, edi
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
jmp 0x408609
cmp dword [esp + 0x20], 0
je 0x408568
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 0x408884
mov esi, dword [esp + 8]
jmp 0x408853
mov ebx, edi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 8]
mov esi, dword [esp]
jmp 0x408911
mov ebx, edi
cmp dword [esp + 0x20], 0
je 0x4085d1
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 0x408609
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
jmp 0x40895d
cmp dword [esp + 0x18], 0
je 0x408ec7
mov eax, dword [esp + 0x34]
mov ch, byte [eax]
cmp ch, 0xe1
ja case.default.0x407cda
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 0x4084fe
mov dword [esp + 0x1c], eax
jmp 0x408525
cmp dword [esp + 0x20], 0
je 0x40865f
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x38]
lea edi, [eax + 2]
mov dword [esp + 0x58], 0x13
jmp 0x40832d
mov esi, edi
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
jmp 0x408693
cmp dword [esp + 0x20], 0
mov dword [esp + 0x14], edi
je 0x4085aa
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 4]
lea edi, [eax + ebp*2]
add edi, 0x1b0
mov dword [esp + 0x58], 0xa
jmp 0x408884
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 0x408bb4
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
jmp 0x408335
cmp dword [esp + 0x20], 1
mov dword [esp + 0x14], edi
jne 0x4084a6
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 4]
lea edi, [eax + ebp*2]
add edi, 0x198
mov dword [esp + 0x58], 8
jmp 0x408884
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 0x40888c
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 0x408609
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 0x407c9d
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 0x40856e
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 0x4089e5
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
cmp esi, 4
mov dword [esp + 0x14], edi
jl 0x4084ec
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 0x408615
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 0x408a5c
mov edx, edi
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 8]
jmp 0x408af9
mov ebx, edi
mov edi, dword [esp + 8]
mov esi, dword [esp]
mov ecx, dword [esp + 0x1c]
jmp 0x4087f6
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 0x408aca
mov eax, dword [esp + 0x50]
mov ecx, edx
mov edx, dword [esp + 0x40]
jmp 0x408572
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 0x40888c
mov ecx, esi
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ebx, dword [esp]
jmp 0x408ac9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40850d
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 0x408d36
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 0x40853a
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 0x4086c7
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 0x40888c
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 0x408884
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 0x40873c
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 0x40899e
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 0x408884
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 0x408604
mov ebx, esi
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x18], 0
je 0x408e2f
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 0x4086db
mov dword [esp + 0x68], eax
jmp 0x408693
mov ebx, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x64]
jne 0x4086f1
mov ecx, dword [esp + 0x64]
mov eax, edi
mov edi, esi
jmp 0x408721
mov dword [esp + 0x14], esi
mov esi, ebp
test edi, edi
je 0x408704
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.0x407cda
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 0x408837
test ecx, ecx
jle 0x408793
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 0x4087bd
mov dword [esp + 0x44], ebx
mov edx, 0x800
sub edx, ecx
shr edx, 5
add edx, ecx
mov dword [esp + 0xc], eax
jmp 0x4087d8
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 0x407c9d
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 0x408825
mov ebp, ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
je 0x408d43
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 0x40873c
sub ecx, 1
jae 0x408955
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 0x4088c4
mov eax, 0x800
sub eax, edi
shr eax, 5
add eax, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], ebx
jmp 0x4088df
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 0x407c9d
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408d65
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 0x407c9d
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 0x408d8f
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 0x408837
test eax, eax
jle 0x408a26
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 0x408a1a
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x34]
mov esi, dword [esp]
je 0x408e54
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 0x40899e
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 0x408ab9
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 0x408b68
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 0x408b96
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 0x408e01
mov dword [esp + 0x50], ecx
cmp ecx, ebp
ja case.default.0x407cda
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 0x408bfb
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 0x408aff
mov dword [esp + 0x5c], eax
mov eax, 2
mov ebp, dword [esp + 0x28]
mov esi, dword [esp]
mov ebx, edx
jmp 0x407c9d
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 0x408be9
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 0x408dcd
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 0x408a5f
xor ebx, ebx
inc ebx
jmp 0x408d36
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 0x408c33
xor ebx, ebx
dec ebx
jmp 0x408d36
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 0x408c13
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 0x408eba
mov dword [esp + 8], esi
mov ecx, 3
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x4c]
mov esi, dword [esp]
jmp 0x408eba
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 0x408c33
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 0x408e26
mov ecx, 0xe
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x4c]
jmp 0x408e26
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 0x408c33
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 0x408c13
mov dword [esp + 8], edi
mov ecx, 0xc
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
jmp 0x408c13
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 0x408c33
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 0x408c33
mov dword [esp + 0x18], 0
xor ecx, ecx
mov ebx, dword [esp + 0x4c]
jmp 0x408c28