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

Disassembly:
sub esp, 0xb4
push esi
push edi
mov eax, ecx
lea edi, [esp + 0x18]
push 0x22
pop ecx
mov esi, eax
mov dword [esp + 0xb8], eax
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x70], 0xffffffff
jne 0x407026
xor eax, eax
inc eax
jmp 0x407d48
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x60]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa4], eax
mov al, byte [esp + 0x45]
push ebx
mov ebx, dword [esp + 0x94]
push ebp
mov ebp, dword [esp + 0x64]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb8], 9
mov dword [esp + 0xbc], 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
cmp eax, 0x1c
ja case.default.0x4070a0
jmp dword [eax*4 + 0x407d53]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407d2f
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov cl, byte [eax]
inc eax
mov dword [esp + 0x38], eax
cmp cl, 0xe1
ja case.default.0x4070a0
xor edx, edx
movzx eax, cl
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 + 0x6c], ecx
mov ecx, esi
shl edx, cl
mov ecx, eax
dec edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x8c], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [esp + 0x6c]
dec edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x90], edx
lea ecx, [ecx + esi]
mov esi, 0x300
shl esi, cl
mov ecx, dword [esp + 0xa4]
add esi, 0x736
lea eax, [esi + esi]
cmp eax, dword [esp + 0x30]
je 0x407168
test ecx, ecx
je 0x407147
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 + 0xa4], ecx
test ecx, ecx
je case.default.0x4070a0
lea eax, [esi + esi]
mov dword [esp + 0x30], eax
sub esi, 1
mov eax, 0x400
mov word [ecx + esi*2], ax
jne 0x407168
xor ecx, ecx
xor esi, esi
jmp 0x4071a5
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407cb2
mov edx, dword [esp + 0x38]
dec eax
shl ecx, 3
mov dword [esp + 0x3c], eax
movzx eax, byte [edx]
shl eax, cl
mov ecx, dword [esp + 0x10]
or esi, eax
inc edx
inc ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x68], esi
cmp ecx, 4
jl case.0x4070a0.1
mov eax, dword [esp + 0x34]
cmp esi, eax
je 0x4071f0
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x34], esi
test eax, eax
je 0x4071d4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0xa0], eax
test eax, eax
je case.default.0x4070a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xa0]
push 5
mov byte [ecx + eax - 1], 0
pop ecx
jmp 0x40722a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407cbc
mov edx, dword [esp + 0x38]
dec eax
mov dword [esp + 0x3c], eax
shl edi, 8
movzx eax, byte [edx]
or edi, eax
inc edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], edx
mov eax, ecx
dec ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x60], ecx
test eax, eax
jne case.0x4070a0.3
mov ecx, dword [esp + 0x48]
and ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x70]
shl eax, 4
mov dword [esp + 0xac], ecx
add eax, ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x24], 6
lea ecx, [ecx + eax*2]
mov dword [esp + 0x54], ecx
jmp 0x407af4
test esi, esi
jne 0x40730a
movzx edx, byte [esp + 0x4c]
push 8
pop eax
mov cl, al
mov eax, dword [esp + 0x48]
sub cl, byte [esp + 0x6c]
and eax, dword [esp + 0xb4]
shr edx, cl
mov ecx, dword [esp + 0x6c]
shl eax, cl
mov ecx, dword [esp + 0xa4]
add edx, eax
imul eax, edx, 0x600
add ecx, 0xe6c
add eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x70]
cmp eax, 4
jge 0x4072c6
and dword [esp + 0x70], esi
jmp 0x4072d7
cmp eax, 0xa
jge 0x4072d0
sub eax, 3
jmp 0x4072d3
sub eax, 6
mov dword [esp + 0x70], eax
cmp dword [esp + 0x74], 0
je 0x407302
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jb 0x4072f3
add eax, ecx
mov ecx, dword [esp + 0xa0]
xor ebp, ebp
inc ebp
mov al, byte [eax + ecx]
jmp 0x407381
xor ebp, ebp
inc ebp
jmp 0x407531
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x74], 1
push 7
lea ecx, [ecx + eax*2]
add ecx, 0x180
pop eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], eax
jmp 0x407af4
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x407cc6
shl ebx, 8
dec edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x38]
shl edi, 8
mov dword [esp + 0x98], ebx
movzx eax, byte [edx]
or edi, eax
inc edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], edx
cmp ecx, esi
jne 0x40745f
cmp ebp, 0x100
jge 0x4074e4
mov al, byte [esp + 0x1b]
mov edx, dword [esp + 0x50]
movzx ecx, al
add al, al
shr ecx, 7
mov byte [esp + 0x1b], al
mov byte [esp + 0x4d], al
mov dword [esp + 0x10], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x60], ecx
shl eax, 8
add eax, ebp
lea edx, [edx + eax*2]
movzx eax, word [edx]
movzx esi, ax
mov dword [esp + 0x1c], eax
mov eax, ebx
shr eax, 0xb
imul eax, esi
mov dword [esp + 0xa8], esi
xor esi, esi
mov dword [esp + 0x54], edx
cmp edi, eax
jae 0x4073e4
mov ebx, eax
mov eax, 0x800
sub eax, dword [esp + 0xa8]
sar eax, 5
add eax, dword [esp + 0x1c]
add ebp, ebp
jmp 0x407409
sub edi, eax
lea ebp, [ebp*2 + 1]
sub ebx, eax
mov dword [esp + 0x9c], edi
mov ax, word [esp + 0x1c]
inc esi
shr ax, 5
sub word [esp + 0x1c], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], ebp
mov word [edx], ax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x68], esi
cmp ebx, 0x1000000
jae 0x407369
jmp case.0x4070a0.13
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x407cd0
mov ecx, dword [esp + 0x38]
shl ebx, 8
dec edx
shl edi, 8
mov dword [esp + 0x98], ebx
movzx eax, byte [ecx]
or edi, eax
mov dword [esp + 0x3c], edx
inc ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], ecx
cmp ebp, 0x100
jge 0x4074e4
mov edx, dword [esp + 0x50]
lea eax, [ebp*2]
add edx, eax
mov dword [esp + 0xa8], eax
mov ecx, ebx
mov dword [esp + 0x54], edx
shr ecx, 0xb
movzx eax, word [edx]
imul ecx, eax
cmp edi, ecx
jae 0x4074a9
movzx edx, word [edx]
mov ebx, ecx
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
mov edx, dword [esp + 0x54]
add ebp, ebp
jmp 0x4074c9
mov ebp, dword [esp + 0xa8]
sub edi, ecx
sub ebx, ecx
mov dword [esp + 0x9c], edi
movzx ecx, word [edx]
mov ax, cx
shr ax, 5
sub cx, ax
inc ebp
mov dword [esp + 0x64], ebp
mov word [edx], cx
mov dword [esp + 0x98], ebx
cmp ebx, 0x1000000
jae 0x40745f
jmp case.0x4070a0.14
mov al, byte [esp + 0x64]
and dword [esp + 0x74], 0
mov byte [esp + 0x4c], al
jmp 0x4075bc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407cda
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 + 0x98], ebx
inc ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], ecx
cmp ebp, 0x100
jge 0x4075ae
mov edx, dword [esp + 0x50]
lea eax, [ebp*2]
add edx, eax
mov dword [esp + 0xa8], eax
mov ecx, ebx
mov dword [esp + 0x54], edx
shr ecx, 0xb
movzx eax, word [edx]
imul ecx, eax
cmp edi, ecx
jae 0x407573
movzx edx, word [edx]
mov ebx, ecx
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
mov edx, dword [esp + 0x54]
add ebp, ebp
jmp 0x407593
mov ebp, dword [esp + 0xa8]
sub edi, ecx
sub ebx, ecx
mov dword [esp + 0x9c], edi
movzx ecx, word [edx]
mov ax, cx
shr ax, 5
sub cx, ax
inc ebp
mov dword [esp + 0x64], ebp
mov word [edx], cx
mov dword [esp + 0x98], ebx
cmp ebx, 0x1000000
jae 0x407529
jmp case.0x4070a0.15
mov al, byte [esp + 0x64]
mov byte [esp + 0x4c], al
jmp 0x4075bc
mov al, byte [esp + 0x4c]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x407ce4
mov ecx, dword [esp + 0x40]
inc dword [esp + 0x48]
mov byte [ecx], al
inc ecx
dec edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xa0]
mov byte [ecx + edx], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x34]
mov dword [esp + 0x94], edx
jmp 0x407a98
cmp esi, 1
jne 0x407626
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa4]
push 8
lea ecx, [ecx + eax*2]
add ecx, 0x198
jmp 0x407328
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x88], eax
push 0xa
pop eax
push 7
mov dword [esp + 0x88], ecx
pop ecx
cmp dword [esp + 0x70], ecx
mov dword [esp + 0x80], edx
cmovl eax, ecx
mov dword [esp + 0x28], 0x16
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xa4]
add eax, 0x664
mov dword [esp + 0x50], eax
jmp 0x407aa4
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa4]
test esi, esi
jne 0x40769d
add eax, 0xf
shl eax, 4
add eax, dword [esp + 0xac]
push 9
lea ecx, [ecx + eax*2]
jmp 0x407328
lea ecx, [ecx + eax*2]
mov dword [esp + 0x24], 0xa
add ecx, 0x1b0
mov dword [esp + 0x54], ecx
jmp 0x407af4
test esi, esi
jne 0x4077c1
cmp dword [esp + 0x48], esi
je case.default.0x4070a0
cmp dword [esp + 0x70], 7
push 0xb
pop eax
cmovl eax, dword [esp + 0xb8]
mov dword [esp + 0x70], eax
cmp dword [esp + 0x44], 0
je 0x407cee
mov eax, dword [esp + 0x94]
sub eax, edx
mov edx, dword [esp + 0x34]
cmp eax, edx
jb 0x4076fb
add eax, edx
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push 2
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 + 0x44]
div dword [esp + 0x38]
mov al, byte [esp + 0x50]
inc dword [esp + 0x4c]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x48]
mov dword [esp + 0x98], edx
mov dword [esp + 0x44], ecx
pop eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x407097
test esi, esi
jne 0x40775b
mov eax, dword [esp + 0x80]
jmp 0x4077b0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x24], 0xb
lea ecx, [ecx + eax*2]
add ecx, 0x1c8
mov dword [esp + 0x54], ecx
jmp 0x407af4
test esi, esi
jne 0x40778d
mov eax, dword [esp + 0x84]
jmp 0x4077a2
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x84], ecx
mov ecx, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0xa4]
add eax, 0xa68
mov dword [esp + 0x28], 0x15
mov dword [esp + 0x50], eax
jmp 0x407aa4
cmp dword [esp + 0x70], 7
push 0xb
pop eax
cmovl eax, dword [esp + 0xbc]
mov dword [esp + 0x70], eax
jmp 0x407a09
cmp dword [esp + 0x78], 4
mov ecx, dword [esp + 0xa4]
push 3
pop eax
cmovl eax, dword [esp + 0x78]
add ecx, 0x360
shl eax, 7
add eax, ecx
mov dword [esp + 0x2c], 0x19
push 6
mov dword [esp + 0x54], eax
pop esi
jmp 0x407bc4
cmp ebp, 4
jl 0x40786b
mov esi, ebp
mov eax, ebp
sar esi, 1
and eax, 1
dec esi
or eax, 2
mov ecx, esi
shl eax, cl
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], eax
cmp ebp, 0xe
jge 0x407864
mov ecx, dword [esp + 0xa4]
sub eax, ebp
add ecx, 0x55e
lea eax, [ecx + eax*2]
jmp 0x4078fe
xor ebp, ebp
lea ecx, [esi - 4]
jmp 0x4078a6
mov edx, ebp
jmp 0x407a00
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407cf8
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 + 0x98], ebx
inc edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], edx
dec ecx
mov dword [esp + 0x60], ecx
test ecx, ecx
jle 0x4078db
shr ebx, 1
add ebp, ebp
mov dword [esp + 0x98], ebx
mov dword [esp + 0x64], ebp
cmp edi, ebx
jb 0x4078d1
sub edi, ebx
or ebp, 1
mov dword [esp + 0x9c], edi
mov dword [esp + 0x64], ebp
cmp ebx, 0x1000000
jae 0x4078a5
jmp case.0x4070a0.12
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xa4]
shl ebp, 4
add ecx, ebp
add eax, 0x644
push 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], ecx
pop esi
mov dword [esp + 0x50], eax
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x68], esi
inc eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x58], eax
xor ecx, ecx
jmp 0x40794f
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407d09
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 + 0x98], ebx
inc edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x10], ecx
cmp ecx, esi
jge 0x4079fa
mov edx, dword [esp + 0x50]
add eax, eax
add edx, eax
mov dword [esp + 0xa8], eax
mov eax, ebx
mov dword [esp + 0x54], edx
shr eax, 0xb
mov dword [esp + 0x1c], eax
movzx eax, word [edx]
mov edx, dword [esp + 0x1c]
imul edx, eax
mov eax, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x54]
cmp edi, eax
jae 0x4079b0
movzx edx, word [edx]
mov ebx, eax
mov eax, edx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
add ecx, edx
mov edx, dword [esp + 0x54]
shl dword [esp + 0x58], 1
jmp 0x4079db
bts ebp, ecx
sub edi, eax
movzx ecx, word [edx]
sub ebx, eax
mov ax, cx
mov dword [esp + 0x64], ebp
shr ax, 5
sub cx, ax
mov dword [esp + 0x9c], edi
mov eax, dword [esp + 0xa8]
inc eax
mov dword [esp + 0x58], eax
mov word [edx], cx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x98], ebx
cmp ebx, 0x1000000
jae 0x40794a
jmp case.0x4070a0.16
mov edx, dword [esp + 0x14]
add edx, ebp
inc edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x7c], edx
test edx, edx
je 0x407d02
cmp edx, dword [esp + 0x48]
ja case.default.0x4070a0
mov eax, dword [esp + 0x78]
add eax, 2
add dword [esp + 0x48], eax
mov dword [esp + 0x78], eax
cmp dword [esp + 0x44], 0
je 0x407d13
mov eax, dword [esp + 0x94]
sub eax, edx
mov edx, dword [esp + 0x34]
cmp eax, edx
jb 0x407a48
add eax, edx
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
mov al, byte [eax + edx]
mov byte [ecx + edx], al
xor edx, edx
mov byte [esp + 0x4c], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x40]
div dword [esp + 0x34]
mov al, byte [esp + 0x4c]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x78]
dec dword [esp + 0x44]
dec eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], eax
test eax, eax
jg case.0x4070a0.28
push 2
pop eax
jmp 0x407741
mov eax, dword [esp + 0x50]
mov ecx, eax
mov dword [esp + 0x24], 0x12
mov dword [esp + 0x54], ecx
jmp 0x407af4
test esi, esi
jne 0x407adb
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x50]
and dword [esp + 0x78], esi
shl eax, 4
add edx, 4
add edx, eax
push 3
mov dword [esp + 0x54], edx
pop esi
jmp 0x407bbc
mov ecx, dword [esp + 0x50]
add ecx, 2
mov dword [esp + 0x24], 0x13
mov dword [esp + 0x54], ecx
jmp 0x407af4
mov ecx, dword [esp + 0x54]
movzx edx, word [ecx]
mov eax, ebx
shr eax, 0xb
mov esi, edx
imul eax, esi
cmp edi, eax
jae 0x407b1a
mov ebx, eax
mov eax, 0x800
sub eax, esi
sar eax, 5
add eax, edx
xor esi, esi
mov word [ecx], ax
jmp 0x407b35
sub edi, eax
sub ebx, eax
mov ax, dx
mov dword [esp + 0x9c], edi
shr ax, 5
xor esi, esi
sub dx, ax
inc esi
mov word [ecx], dx
mov dword [esp + 0x68], esi
mov dword [esp + 0x98], ebx
cmp ebx, 0x1000000
jae 0x407b7b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407d1d
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 + 0x98], ebx
inc ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x24]
jmp 0x40773d
test esi, esi
jne 0x407ba8
mov edx, dword [esp + 0x50]
push 8
pop eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xac]
shl eax, 4
add edx, 0x104
jmp 0x407acd
add dword [esp + 0x50], 0x204
push 0x10
pop eax
push 8
mov dword [esp + 0x7c], eax
pop eax
mov esi, eax
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x68], esi
xor edx, edx
mov ecx, esi
inc edx
mov dword [esp + 0x58], edx
jmp 0x407c0b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407d27
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 + 0x98], ebx
inc edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x58]
dec ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x407c89
mov ebp, dword [esp + 0x50]
add edx, edx
add ebp, edx
mov ecx, ebx
shr ecx, 0xb
mov dword [esp + 0x54], ebp
movzx eax, word [ebp]
imul ecx, eax
cmp edi, ecx
jae 0x407c4d
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 + 0x58], 1
jmp 0x407c6d
sub edi, ecx
sub ebx, ecx
movzx ecx, word [ebp]
mov ax, cx
mov dword [esp + 0x9c], edi
shr ax, 5
sub cx, ax
lea eax, [edx + 1]
mov dword [esp + 0x58], eax
mov word [ebp], cx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x98], ebx
cmp ebx, 0x1000000
jae 0x407c06
jmp case.0x4070a0.24
xor eax, eax
mov ecx, esi
inc eax
mov ebp, edx
shl eax, cl
sub ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x64], ebp
jmp 0x40773d
mov eax, dword [esp + 0x28]
add dword [esp + 0x78], ebp
mov dword [esp + 0x20], eax
jmp 0x407097
mov dword [esp + 0x20], 1
jmp 0x407d2f
mov dword [esp + 0x20], 3
jmp 0x407d2f
mov dword [esp + 0x20], 0xd
jmp 0x407d2f
mov dword [esp + 0x20], 0xe
jmp 0x407d2f
mov dword [esp + 0x20], 0xf
jmp 0x407d2f
mov dword [esp + 0x20], 0x1a
jmp 0x407d2f
mov dword [esp + 0x20], 0x1b
jmp 0x407d2f
mov dword [esp + 0x20], 0xc
jmp 0x407d2f
or dword [esp + 0x78], 0xffffffff
jmp 0x407d2f
mov dword [esp + 0x20], 0x10
jmp 0x407d2f
mov dword [esp + 0x20], 0x1c
jmp 0x407d2f
mov dword [esp + 0x20], 5
jmp 0x407d2f
mov dword [esp + 0x20], 0x18
mov edi, dword [esp + 0xc0]
lea esi, [esp + 0x20]
push 0x22
pop ecx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x407d46
or eax, 0xffffffff
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xb4
ret