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

Disassembly:
sub esp, 0xb8
push esi
push edi
mov eax, ecx
lea edi, [esp + 0x18]
push 0x24
pop ecx
mov esi, eax
mov dword [esp + 0xbc], eax
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x74], 0xffffffff
jne 0x4073c1
xor eax, eax
inc eax
jmp 0x408110
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x64]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xac], eax
mov al, byte [esp + 0x49]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
mov ebp, dword [esp + 0x58]
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp eax, 0x1c
ja case.default.0x40742d
jmp dword [eax*4 + 0x40811a]
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x4080f7
mov ecx, dword [esp + 0x38]
dec ebp
mov dword [esp + 0x3c], ebp
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x38], ecx
cmp al, 0xe1
ja case.default.0x40742d
xor edx, edx
movzx eax, al
push 0x2d
pop ecx
div ecx
push 9
mov esi, eax
movzx eax, dl
xor edx, edx
pop ecx
div ecx
movzx ecx, dl
xor edx, edx
inc edx
mov dword [esp + 0x70], ecx
mov ecx, esi
shl edx, cl
mov ecx, eax
dec edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0x90], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [esp + 0x70]
dec edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0x94], edx
lea ecx, [ecx + esi]
mov esi, 0x300
shl esi, cl
mov ecx, dword [esp + 0xa8]
add esi, 0x736
lea eax, [esi + esi]
cmp eax, dword [esp + 0x30]
je 0x4074f4
test ecx, ecx
je 0x4074d3
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esp + 0xa8], ecx
test ecx, ecx
je case.default.0x40742d
lea eax, [esi + esi]
mov dword [esp + 0x30], eax
sub esi, 1
mov eax, 0x400
mov word [ecx + esi*2], ax
jne 0x4074f4
xor eax, eax
mov ecx, eax
mov esi, eax
jmp 0x407533
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x40807a
mov edx, dword [esp + 0x38]
dec ebp
shl ecx, 3
mov dword [esp + 0x3c], ebp
movzx eax, byte [edx]
shl eax, cl
mov ecx, dword [esp + 0x14]
or esi, eax
inc edx
inc ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x6c], esi
cmp ecx, 4
jl 0x40750e
mov eax, dword [esp + 0x34]
cmp esi, eax
je 0x40757e
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x34], esi
test eax, eax
je 0x407562
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0xa4], eax
test eax, eax
je case.default.0x40742d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xa4]
xor edx, edx
push 5
mov byte [ecx + eax - 1], dl
pop ecx
jmp 0x4075b9
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x408084
mov edx, dword [esp + 0x38]
dec ebp
shl edi, 8
mov dword [esp + 0x3c], ebp
movzx eax, byte [edx]
or edi, eax
inc edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x38], edx
mov eax, ecx
dec ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], ecx
test eax, eax
jne 0x407594
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x48]
and ebp, dword [esp + 0xb8]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0xa8]
shl eax, 4
add eax, ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x24], 6
lea ebp, [esi + eax*2]
jmp 0x407eaa
test esi, esi
jne 0x40769b
movzx edx, byte [esp + 0x50]
push 8
pop eax
mov cl, al
mov eax, dword [esp + 0x48]
sub cl, byte [esp + 0x70]
and eax, dword [esp + 0xbc]
shr edx, cl
mov ecx, dword [esp + 0x70]
shl eax, cl
mov ecx, dword [esp + 0xa8]
add edx, eax
imul eax, edx, 0x600
add ecx, 0xe6c
add eax, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x54], eax
cmp ecx, 4
jge 0x407653
xor ecx, ecx
jmp 0x407660
cmp ecx, 0xa
jge 0x40765d
sub ecx, 3
jmp 0x407660
sub ecx, 6
cmp dword [esp + 0x78], 0
mov dword [esp + 0x74], ecx
je 0x40768f
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jb 0x407680
add eax, ecx
mov ecx, dword [esp + 0xa4]
xor edx, edx
inc edx
mov al, byte [eax + ecx]
jmp 0x40770c
xor edx, edx
inc edx
mov dword [esp + 0x10], edx
jmp 0x4078bc
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], 1
add eax, 0xc0
push 7
mov esi, dword [esp + 0xac]
lea ebp, [esi + eax*2]
pop eax
mov dword [esp + 0x24], eax
jmp 0x407eaa
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40808e
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
shl edi, 8
mov dword [esp + 0x9c], ebx
movzx eax, byte [eax]
or edi, eax
inc dword [esp + 0x38]
mov dword [esp + 0xa0], edi
cmp ecx, esi
jne 0x4077f0
cmp edx, 0x100
jge 0x40786a
mov al, byte [esp + 0x1f]
mov esi, dword [esp + 0x54]
movzx ecx, al
add al, al
shr ecx, 7
mov byte [esp + 0x1f], al
mov byte [esp + 0x51], al
mov dword [esp + 0x14], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x64], ecx
shl eax, 8
add eax, edx
lea ebp, [esi + eax*2]
movzx eax, word [ebp]
movzx esi, ax
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 0xb
imul eax, esi
mov dword [esp + 0xb0], esi
xor esi, esi
mov dword [esp + 0x58], ebp
cmp edi, eax
jae 0x407770
mov ebx, eax
mov eax, 0x800
sub eax, dword [esp + 0xb0]
sar eax, 5
add eax, dword [esp + 0x10]
add edx, edx
jmp 0x407795
sub edi, eax
lea edx, [edx*2 + 1]
sub ebx, eax
mov dword [esp + 0xa0], edi
mov ax, word [esp + 0x10]
inc esi
shr ax, 5
sub word [esp + 0x10], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], edx
mov dword [esp + 0x10], edx
mov word [ebp], ax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x6c], esi
cmp ebx, 0x1000000
jae 0x4076f4
jmp case.0x40742d.13
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x408098
mov ecx, dword [esp + 0x38]
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
shl edi, 8
movzx eax, byte [ecx]
or edi, eax
mov dword [esp + 0x9c], ebx
inc ecx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x38], ecx
cmp edx, 0x100
jge 0x40786a
mov ebp, dword [esp + 0x54]
add edx, edx
add ebp, edx
mov ecx, ebx
shr ecx, 0xb
mov dword [esp + 0x58], ebp
movzx eax, word [ebp]
imul ecx, eax
cmp edi, ecx
jae 0x407830
movzx edx, word [ebp]
mov ebx, ecx
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
mov edx, dword [esp + 0x10]
add edx, edx
jmp 0x40784a
sub edi, ecx
sub ebx, ecx
movzx ecx, word [ebp]
mov ax, cx
mov dword [esp + 0xa0], edi
shr ax, 5
sub cx, ax
inc edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x10], edx
mov word [ebp], cx
mov dword [esp + 0x9c], ebx
cmp ebx, 0x1000000
jae 0x4077f0
jmp case.0x40742d.14
mov al, byte [esp + 0x68]
xor edx, edx
mov byte [esp + 0x50], al
mov dword [esp + 0x78], edx
jmp 0x407939
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4080a2
mov ecx, dword [esp + 0x38]
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
shl edi, 8
movzx eax, byte [ecx]
or edi, eax
mov dword [esp + 0x9c], ebx
inc ecx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x38], ecx
cmp edx, 0x100
jge 0x40792b
mov eax, dword [esp + 0x54]
add edx, edx
mov ecx, ebx
shr ecx, 0xb
lea ebp, [edx + eax]
movzx eax, word [ebp]
imul ecx, eax
mov dword [esp + 0x58], ebp
cmp edi, ecx
jae 0x4078f1
movzx edx, word [ebp]
mov ebx, ecx
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
mov edx, dword [esp + 0x10]
add edx, edx
jmp 0x40790b
sub edi, ecx
sub ebx, ecx
movzx ecx, word [ebp]
mov ax, cx
mov dword [esp + 0xa0], edi
shr ax, 5
sub cx, ax
inc edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x10], edx
mov word [ebp], cx
mov dword [esp + 0x9c], ebx
cmp ebx, 0x1000000
jae 0x4078b0
jmp case.0x40742d.15
mov al, byte [esp + 0x68]
mov byte [esp + 0x50], al
jmp 0x407939
mov al, byte [esp + 0x50]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4080ac
add dword [esp + 0x48], 1
push 0
pop ecx
adc dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x40]
mov byte [ecx], al
inc ecx
dec edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xa4]
mov byte [ecx + edx], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x14]
xor edx, edx
div dword [esp + 0x34]
mov dword [esp + 0x98], edx
jmp 0x407e52
cmp esi, 1
jne 0x4079a0
mov eax, dword [esp + 0x74]
add eax, 0xcc
push 8
jmp 0x4076ae
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x8c], eax
push 0xa
pop eax
push 7
pop ebp
cmp dword [esp + 0x74], ebp
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x18]
cmovl eax, ebp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa8]
add eax, 0x664
mov dword [esp + 0x84], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], 0x16
jmp 0x407e66
test esi, esi
mov esi, dword [esp + 0xa8]
jne 0x407a18
mov eax, dword [esp + 0x74]
add eax, 0xf
shl eax, 4
add eax, dword [esp + 0xb4]
push 9
jmp 0x4076b5
mov ebp, dword [esp + 0x74]
add ebp, 0xd8
mov dword [esp + 0x24], 0xa
lea ebp, [esi + ebp*2]
jmp 0x407eaa
test esi, esi
jne 0x407b4b
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
je case.default.0x40742d
push 0xb
pop eax
push 7
pop edx
cmp dword [esp + 0x74], edx
push 9
pop edx
cmovl eax, edx
mov dword [esp + 0x74], eax
cmp dword [esp + 0x44], 0
je 0x4080b6
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
cmp eax, edx
jb 0x407a7c
add eax, edx
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x98]
push 0
mov al, byte [eax + edx]
mov byte [ecx + edx], al
xor edx, edx
mov byte [esp + 0x54], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x44]
div dword [esp + 0x38]
add dword [esp + 0x4c], 1
pop eax
adc dword [esp + 0x4c], eax
mov al, byte [esp + 0x50]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x44]
push 2
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
pop eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x407424
test esi, esi
jne 0x407ae4
mov eax, dword [esp + 0x84]
jmp 0x407b35
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0xa8]
add ebp, 0xe4
mov dword [esp + 0x24], 0xb
lea ebp, [esi + ebp*2]
jmp 0x407eaa
test esi, esi
jne 0x407b12
mov eax, dword [esp + 0x88]
jmp 0x407b27
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x8c], ebp
mov esi, dword [esp + 0x84]
mov dword [esp + 0x88], esi
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xa8]
add eax, 0xa68
mov dword [esp + 0x28], 0x15
mov dword [esp + 0x54], eax
jmp 0x407e66
push 0xb
pop eax
push 7
pop edx
cmp dword [esp + 0x74], edx
push 8
pop edx
cmovl eax, edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
jmp 0x407db0
cmp dword [esp + 0x7c], 4
mov ecx, dword [esp + 0xa8]
push 3
pop eax
cmovl eax, dword [esp + 0x7c]
add ecx, 0x360
shl eax, 7
add eax, ecx
mov dword [esp + 0x2c], 0x19
push 6
mov dword [esp + 0x58], eax
pop esi
jmp 0x407f8a
mov eax, edx
cmp edx, 4
jl 0x407da4
mov esi, edx
and eax, 1
sar esi, 1
or eax, 2
dec esi
mov ecx, esi
shl eax, cl
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
cmp edx, 0xe
jge 0x407bf9
mov ecx, dword [esp + 0xa8]
sub eax, edx
add ecx, 0x55e
lea eax, [ecx + eax*2]
jmp 0x407c8e
xor eax, eax
lea ecx, [esi - 4]
mov edx, eax
jmp 0x407c36
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4080c0
mov esi, dword [esp + 0x38]
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
shl edi, 8
movzx eax, byte [esi]
or edi, eax
mov dword [esp + 0x9c], ebx
inc esi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x38], esi
dec ecx
mov dword [esp + 0x64], ecx
test ecx, ecx
jle 0x407c6b
shr ebx, 1
add edx, edx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x68], edx
cmp edi, ebx
jb 0x407c61
sub edi, ebx
or edx, 1
mov dword [esp + 0xa0], edi
mov dword [esp + 0x68], edx
cmp ebx, 0x1000000
jae 0x407c35
jmp case.0x40742d.12
mov eax, dword [esp + 0x18]
shl edx, 4
add eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xa8]
push 4
add eax, 0x644
pop esi
mov dword [esp + 0x54], eax
xor eax, eax
inc eax
mov dword [esp + 0x6c], esi
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x68], edx
jmp 0x407ce2
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4080d1
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
shl edi, 8
mov dword [esp + 0x9c], ebx
movzx eax, byte [eax]
or edi, eax
inc dword [esp + 0x38]
mov dword [esp + 0xa0], edi
mov eax, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], ecx
cmp ecx, esi
jge 0x407d9e
mov ebp, dword [esp + 0x54]
add eax, eax
add ebp, eax
mov dword [esp + 0xc0], eax
mov eax, ebx
mov dword [esp + 0x58], ebp
shr eax, 0xb
mov dword [esp + 0xb0], eax
movzx eax, word [ebp]
mov ecx, dword [esp + 0xb0]
imul ecx, eax
mov eax, ecx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x14]
cmp edi, eax
jae 0x407d4e
movzx edx, word [ebp]
mov ebx, eax
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
shl dword [esp + 0x5c], 1
mov edx, dword [esp + 0x10]
jmp 0x407d7e
bts edx, ecx
sub edi, eax
movzx ecx, word [ebp]
sub ebx, eax
mov ax, cx
mov dword [esp + 0x10], edx
shr ax, 5
sub cx, ax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0xc0]
inc eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0x5c], eax
mov word [ebp], cx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], ebx
cmp ebx, 0x1000000
jae 0x407cdd
jmp case.0x40742d.16
mov eax, dword [esp + 0x18]
add eax, edx
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
test eax, eax
je 0x4080ca
xor edx, edx
cmp edx, dword [esp + 0x4c]
ja case.default.0x40742d
jb 0x407dd0
cmp eax, dword [esp + 0x48]
ja case.default.0x40742d
mov eax, dword [esp + 0x7c]
add eax, 2
mov dword [esp + 0x7c], eax
cdq
add dword [esp + 0x48], eax
adc dword [esp + 0x4c], edx
mov edx, dword [esp + 0x98]
cmp dword [esp + 0x44], 0
je 0x4080db
mov eax, edx
mov edx, dword [esp + 0x34]
sub eax, dword [esp + 0x18]
cmp eax, edx
jb 0x407e06
add eax, edx
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x98]
mov al, byte [eax + edx]
mov byte [ecx + edx], al
xor edx, edx
mov byte [esp + 0x50], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x40]
div dword [esp + 0x34]
mov al, byte [esp + 0x50]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x7c]
dec dword [esp + 0x44]
dec eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x98], edx
mov dword [esp + 0x7c], eax
test eax, eax
jg 0x407deb
mov edx, dword [esp + 0x10]
push 2
pop eax
mov dword [esp + 0x20], eax
jmp 0x407424
mov eax, dword [esp + 0x54]
mov ebp, eax
mov dword [esp + 0x24], 0x12
jmp 0x407eaa
test esi, esi
jne 0x407e9b
mov edx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xb4]
shl eax, 4
add edx, 4
add edx, eax
push 3
mov dword [esp + 0x58], edx
pop esi
jmp 0x407f82
mov ebp, dword [esp + 0x54]
add ebp, 2
mov dword [esp + 0x24], 0x13
mov dword [esp + 0x58], ebp
movzx esi, word [ebp]
mov eax, ebx
shr eax, 0xb
imul eax, esi
mov dword [esp + 0xb0], esi
cmp edi, eax
jae 0x407edd
mov ebx, eax
mov eax, 0x800
sub eax, esi
sar eax, 5
add eax, esi
mov word [ebp], ax
xor eax, eax
mov esi, eax
jmp 0x407ef9
sub edi, eax
sub ebx, eax
mov ax, si
mov dword [esp + 0xa0], edi
shr ax, 5
sub si, ax
mov word [ebp], si
xor esi, esi
inc esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x9c], ebx
cmp ebx, 0x1000000
jae 0x407f3e
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4080e5
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
shl edi, 8
mov dword [esp + 0x9c], ebx
movzx eax, byte [eax]
or edi, eax
inc dword [esp + 0x38]
mov dword [esp + 0xa0], edi
mov eax, dword [esp + 0x24]
jmp 0x408071
test esi, esi
jne 0x407f6b
mov edx, dword [esp + 0x54]
push 8
pop eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xb4]
shl eax, 4
add edx, 0x104
jmp 0x407e8d
add dword [esp + 0x54], 0x204
push 0x10
pop eax
push 8
mov dword [esp + 0x80], eax
pop eax
mov esi, eax
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x6c], esi
xor edx, edx
mov ecx, esi
inc edx
mov dword [esp + 0x5c], edx
jmp 0x407fd1
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4080ef
mov edx, dword [esp + 0x38]
shl ebx, 8
dec eax
mov dword [esp + 0x3c], eax
shl edi, 8
movzx eax, byte [edx]
or edi, eax
mov dword [esp + 0x9c], ebx
inc edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x5c]
dec ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x40804f
mov ebp, dword [esp + 0x54]
add edx, edx
add ebp, edx
mov ecx, ebx
shr ecx, 0xb
mov dword [esp + 0x58], ebp
movzx eax, word [ebp]
imul ecx, eax
cmp edi, ecx
jae 0x408013
movzx edx, word [ebp]
mov ebx, ecx
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
shl dword [esp + 0x5c], 1
jmp 0x408033
sub edi, ecx
sub ebx, ecx
movzx ecx, word [ebp]
mov ax, cx
mov dword [esp + 0xa0], edi
shr ax, 5
sub cx, ax
lea eax, [edx + 1]
mov dword [esp + 0x5c], eax
mov word [ebp], cx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], ebx
cmp ebx, 0x1000000
jae 0x407fcc
jmp case.0x40742d.24
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
sub edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x68], edx
jmp 0x407aca
add dword [esp + 0x7c], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
jmp 0x407424
mov dword [esp + 0x20], 1
jmp 0x4080f7
mov dword [esp + 0x20], 3
jmp 0x4080f7
mov dword [esp + 0x20], 0xd
jmp 0x4080f7
mov dword [esp + 0x20], 0xe
jmp 0x4080f7
mov dword [esp + 0x20], 0xf
jmp 0x4080f7
mov dword [esp + 0x20], 0x1a
jmp 0x4080f7
mov dword [esp + 0x20], 0x1b
jmp 0x4080f7
mov dword [esp + 0x20], 0xc
jmp 0x4080f7
or dword [esp + 0x7c], 0xffffffff
jmp 0x4080f7
mov dword [esp + 0x20], 0x10
jmp 0x4080f7
mov dword [esp + 0x20], 0x1c
jmp 0x4080f7
mov dword [esp + 0x20], 5
jmp 0x4080f7
mov dword [esp + 0x20], 0x18
mov edi, dword [esp + 0xc4]
lea esi, [esp + 0x20]
push 0x24
pop ecx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x40810e
or eax, 0xffffffff
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xb8
ret