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

Disassembly:
sub esp, 0xc0
push esi
push edi
mov eax, ecx
lea edi, [esp + 0x1c]
push 0x24
pop ecx
mov esi, eax
mov dword [esp + 0xc0], eax
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x78], 0xffffffff
jne 0x4073ef
xor eax, eax
inc eax
jmp 0x408188
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x68]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xb0], eax
mov al, byte [esp + 0x4d]
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x6c]
mov byte [esp + 0x23], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0xcc], 9
mov dword [esp + 0xc4], 8
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
cmp eax, 0x1c
ja case.default.0x407469
jmp dword [eax*4 + 0x408194]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40816f
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov cl, byte [eax]
inc eax
mov dword [esp + 0x3c], eax
cmp cl, 0xe1
ja case.default.0x407469
movzx eax, cl
cdq
push 0x2d
pop ecx
idiv ecx
push 9
mov esi, eax
movzx eax, dl
cdq
pop ecx
idiv ecx
movzx ecx, dl
xor edx, edx
inc edx
mov dword [esp + 0x74], ecx
mov ecx, esi
shl edx, cl
mov ecx, eax
dec edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0x94], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [esp + 0x74]
dec edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0x98], edx
lea ecx, [ecx + esi]
mov esi, 0x300
shl esi, cl
mov ecx, dword [esp + 0xac]
add esi, 0x736
lea eax, [esi + esi]
cmp eax, dword [esp + 0x34]
je 0x40752f
test ecx, ecx
je 0x40750e
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 + 0xac], ecx
test ecx, ecx
je case.default.0x407469
lea eax, [esi + esi]
mov dword [esp + 0x34], eax
test esi, esi
je 0x40753f
dec esi
mov eax, 0x400
mov word [ecx + esi*2], ax
jne 0x407533
xor eax, eax
mov ecx, eax
mov esi, eax
jmp 0x407570
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4080ef
mov edx, dword [esp + 0x3c]
dec eax
shl ecx, 3
mov dword [esp + 0x40], eax
movzx eax, byte [edx]
shl eax, cl
mov ecx, dword [esp + 0x10]
or esi, eax
inc edx
inc ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x70], esi
cmp ecx, 4
jl case.0x407469.1
mov eax, dword [esp + 0x38]
cmp esi, eax
je 0x4075bb
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x38], esi
test eax, eax
je 0x40759f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0xa8], eax
test eax, eax
je case.default.0x407469
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xa8]
xor edx, edx
push 5
mov byte [ecx + eax - 1], dl
pop ecx
jmp 0x4075f6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4080f9
mov edx, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x40], eax
shl edi, 8
movzx eax, byte [edx]
or edi, eax
inc edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], edx
mov eax, ecx
dec ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x68], ecx
test eax, eax
jne case.0x407469.3
mov ecx, dword [esp + 0x4c]
and ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x78]
shl eax, 4
mov dword [esp + 0xb8], ecx
add eax, ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x28], 6
lea ecx, [ecx + eax*2]
mov dword [esp + 0x5c], ecx
jmp 0x407f1e
test esi, esi
jne 0x4076d4
movzx edx, byte [esp + 0x54]
push 8
pop eax
mov cl, al
mov eax, dword [esp + 0x4c]
sub cl, byte [esp + 0x74]
and eax, dword [esp + 0xbc]
shr edx, cl
mov ecx, dword [esp + 0x74]
shl eax, cl
mov ecx, dword [esp + 0xac]
add edx, eax
imul eax, edx, 0x600
add ecx, 0xe6c
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
cmp eax, 4
jge 0x407690
xor eax, eax
jmp 0x40769d
cmp eax, 0xa
jge 0x40769a
sub eax, 3
jmp 0x40769d
sub eax, 6
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x78], eax
je 0x4076cc
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jb 0x4076bd
add eax, ecx
mov ecx, dword [esp + 0xa8]
xor ebp, ebp
inc ebp
mov al, byte [eax + ecx]
jmp 0x40774b
xor ebp, ebp
inc ebp
jmp 0x40790a
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x7c], 1
push 7
lea ecx, [ecx + eax*2]
add ecx, 0x180
pop eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x28], eax
jmp 0x407f1e
mov edx, dword [esp + 0x40]
test edx, edx
je 0x408103
shl ebx, 8
dec edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
shl edi, 8
mov dword [esp + 0xa0], ebx
movzx eax, byte [edx]
or edi, eax
inc edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], edx
cmp ecx, esi
jne 0x407823
cmp ebp, 0x100
jge 0x4078bc
mov al, byte [esp + 0x23]
mov edx, dword [esp + 0x58]
movzx ecx, al
add al, al
shr ecx, 7
mov byte [esp + 0x23], al
mov byte [esp + 0x55], al
mov dword [esp + 0x10], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x68], ecx
shl eax, 8
add eax, ebp
lea edx, [edx + eax*2]
movzx eax, word [edx]
movzx esi, ax
mov dword [esp + 0x14], eax
mov eax, ebx
shr eax, 0xb
imul eax, esi
mov dword [esp + 0x1c], esi
xor esi, esi
mov dword [esp + 0x5c], edx
cmp edi, eax
jae 0x4077a8
mov ebx, eax
mov eax, 0x800
sub eax, dword [esp + 0x1c]
sar eax, 5
add eax, dword [esp + 0x14]
add ebp, ebp
jmp 0x4077cd
sub edi, eax
lea ebp, [ebp*2 + 1]
sub ebx, eax
mov dword [esp + 0xa4], edi
mov ax, word [esp + 0x14]
inc esi
shr ax, 5
sub word [esp + 0x14], ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], ebp
mov word [edx], ax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x70], esi
cmp ebx, 0x1000000
jae 0x407733
jmp case.0x407469.13
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40810d
shl ebx, 8
dec edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
shl edi, 8
mov dword [esp + 0xa0], ebx
movzx eax, byte [edx]
or edi, eax
inc edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], edx
cmp ebp, 0x100
jge 0x4078bc
mov edx, dword [esp + 0x58]
lea eax, [ebp*2]
add edx, eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x5c], edx
movzx eax, word [edx]
mov dword [esp + 0x1c], eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, ebx
shr eax, 0xb
imul eax, dword [esp + 0x14]
cmp edi, eax
jae 0x40787c
mov ebx, eax
mov eax, 0x800
sub eax, dword [esp + 0x14]
sar eax, 5
add eax, dword [esp + 0x1c]
add ebp, ebp
mov word [edx], ax
jmp 0x4078a0
mov ebp, dword [esp + 0x1c]
sub edi, eax
sub ebx, eax
mov dword [esp + 0xa4], edi
mov ax, bp
shr ax, 5
sub bp, ax
mov word [edx], bp
mov ebp, dword [esp + 0xb4]
inc ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0xa0], ebx
cmp ebx, 0x1000000
jae 0x407823
jmp case.0x407469.14
mov al, byte [esp + 0x6c]
xor edx, edx
mov byte [esp + 0x54], al
mov dword [esp + 0x7c], edx
jmp 0x407990
mov eax, dword [esp + 0x40]
test eax, eax
je 0x408117
mov ecx, dword [esp + 0x3c]
shl ebx, 8
dec eax
mov dword [esp + 0x40], eax
shl edi, 8
movzx eax, byte [ecx]
or edi, eax
mov dword [esp + 0xa0], ebx
inc ecx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], ecx
cmp ebp, 0x100
jge 0x407982
mov edx, dword [esp + 0x58]
lea eax, [ebp*2]
add edx, eax
mov dword [esp + 0xb4], eax
mov eax, ebx
mov dword [esp + 0x5c], edx
shr eax, 0xb
movzx ecx, word [edx]
imul eax, ecx
mov dword [esp + 0x1c], ecx
cmp edi, eax
jae 0x40794a
mov ebx, eax
mov eax, 0x800
sub eax, ecx
sar eax, 5
add eax, ecx
add ebp, ebp
mov word [edx], ax
jmp 0x40796a
mov ebp, dword [esp + 0xb4]
sub edi, eax
sub ebx, eax
mov dword [esp + 0xa4], edi
mov ax, cx
shr ax, 5
sub cx, ax
inc ebp
mov word [edx], cx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0xa0], ebx
cmp ebx, 0x1000000
jae 0x407902
jmp case.0x407469.15
mov al, byte [esp + 0x6c]
mov byte [esp + 0x54], al
jmp 0x407990
mov al, byte [esp + 0x54]
mov edx, dword [esp + 0x48]
test edx, edx
je 0x408121
add dword [esp + 0x4c], 1
push 0
pop ecx
adc dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
mov byte [ecx], al
inc ecx
dec edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xa8]
mov byte [ecx + edx], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x38]
mov dword [esp + 0x9c], edx
jmp 0x407ebd
cmp esi, 1
jne 0x407a02
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xac]
push 8
lea ecx, [ecx + eax*2]
add ecx, 0x198
jmp 0x4076f2
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x90], eax
push 0xa
pop eax
push 7
mov dword [esp + 0x90], ecx
pop ecx
cmp dword [esp + 0x78], ecx
mov dword [esp + 0x88], edx
cmovl eax, ecx
mov dword [esp + 0x2c], 0x16
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xac]
add eax, 0x664
mov dword [esp + 0x58], eax
jmp 0x407ec9
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xac]
test esi, esi
jne 0x407a79
add eax, 0xf
shl eax, 4
add eax, dword [esp + 0xb8]
push 9
lea ecx, [ecx + eax*2]
jmp 0x4076f2
lea ecx, [ecx + eax*2]
mov dword [esp + 0x28], 0xa
add ecx, 0x1b0
mov dword [esp + 0x5c], ecx
jmp 0x407f1e
test esi, esi
jne 0x407bac
mov eax, dword [esp + 0x4c]
or eax, dword [esp + 0x50]
je case.default.0x407469
cmp dword [esp + 0x78], 7
push 0xb
pop eax
cmovl eax, dword [esp + 0xcc]
mov dword [esp + 0x78], eax
cmp dword [esp + 0x48], 0
je 0x40812b
mov eax, dword [esp + 0x9c]
sub eax, edx
mov edx, dword [esp + 0x38]
cmp eax, edx
jb 0x407adb
add eax, edx
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x9c]
push 0
mov al, byte [eax + edx]
mov byte [ecx + edx], al
xor edx, edx
mov byte [esp + 0x58], al
mov eax, ecx
inc eax
mov ecx, dword [esp + 0x48]
div dword [esp + 0x3c]
add dword [esp + 0x50], 1
pop eax
adc dword [esp + 0x50], eax
mov al, byte [esp + 0x54]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x48]
push 2
mov dword [esp + 0xa0], edx
mov dword [esp + 0x48], ecx
pop eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x407460
test esi, esi
jne 0x407b43
mov eax, dword [esp + 0x88]
jmp 0x407b98
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x28], 0xb
lea ecx, [ecx + eax*2]
add ecx, 0x1c8
mov dword [esp + 0x5c], ecx
jmp 0x407f1e
test esi, esi
jne 0x407b75
mov eax, dword [esp + 0x8c]
jmp 0x407b8a
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x8c], ecx
mov ecx, eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0xac]
add eax, 0xa68
mov dword [esp + 0x2c], 0x15
mov dword [esp + 0x58], eax
jmp 0x407ec9
cmp dword [esp + 0x78], 7
push 0xb
pop eax
cmovl eax, dword [esp + 0xc4]
mov dword [esp + 0x78], eax
jmp 0x407e0b
cmp dword [esp + 0x80], 4
mov ecx, dword [esp + 0xac]
push 3
pop eax
cmovl eax, dword [esp + 0x80]
add ecx, 0x360
shl eax, 7
add eax, ecx
mov dword [esp + 0x30], 0x19
push 6
mov dword [esp + 0x5c], eax
pop esi
jmp 0x407ff6
cmp ebp, 4
jl 0x407c61
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 + 0x18], eax
mov dword [esp + 0x84], eax
cmp ebp, 0xe
jge 0x407c58
mov ecx, dword [esp + 0xac]
sub eax, ebp
add ecx, 0x55e
lea eax, [ecx + eax*2]
jmp 0x407cf4
xor eax, eax
lea ecx, [esi - 4]
mov ebp, eax
jmp 0x407c9c
mov edx, ebp
jmp 0x407dff
mov eax, dword [esp + 0x40]
test eax, eax
je 0x408135
mov edx, dword [esp + 0x3c]
shl ebx, 8
dec eax
mov dword [esp + 0x40], eax
shl edi, 8
movzx eax, byte [edx]
or edi, eax
mov dword [esp + 0xa0], ebx
inc edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], edx
dec ecx
mov dword [esp + 0x68], ecx
test ecx, ecx
jle 0x407cd1
shr ebx, 1
add ebp, ebp
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x6c], ebp
cmp edi, ebx
jb 0x407cc7
sub edi, ebx
or ebp, 1
mov dword [esp + 0xa4], edi
mov dword [esp + 0x6c], ebp
cmp ebx, 0x1000000
jae 0x407c9b
jmp case.0x407469.12
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xac]
shl ebp, 4
add ecx, ebp
add eax, 0x644
push 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x88], ecx
pop esi
mov dword [esp + 0x58], eax
xor eax, eax
inc eax
mov dword [esp + 0x70], esi
xor ecx, ecx
mov dword [esp + 0x60], eax
mov ebp, ecx
mov dword [esp + 0x6c], ebp
jmp 0x407d45
mov eax, dword [esp + 0x40]
test eax, eax
je 0x408149
mov edx, dword [esp + 0x3c]
shl ebx, 8
dec eax
mov dword [esp + 0x40], eax
shl edi, 8
movzx eax, byte [edx]
or edi, eax
mov dword [esp + 0xa0], ebx
inc edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x60]
inc ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], ecx
cmp ecx, esi
jge 0x407df9
mov edx, dword [esp + 0x58]
add eax, eax
add edx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], edx
movzx eax, word [edx]
mov dword [esp + 0x14], eax
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, ebx
shr eax, 0xb
imul eax, dword [esp + 0x1c]
mov dword [esp + 0xb4], eax
cmp edi, eax
jae 0x407da3
mov ebx, eax
mov eax, 0x800
sub eax, dword [esp + 0x1c]
sar eax, 5
add eax, dword [esp + 0x14]
shl dword [esp + 0x60], 1
mov word [edx], ax
jmp 0x407de1
sub edi, dword [esp + 0xb4]
xor eax, eax
sub ebx, dword [esp + 0xb4]
inc eax
shl eax, cl
or ebp, eax
mov dword [esp + 0xa4], edi
mov ax, word [esp + 0x14]
shr ax, 5
sub word [esp + 0x14], ax
mov eax, dword [esp + 0x14]
mov word [edx], ax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0xa0], ebx
cmp ebx, 0x1000000
jae 0x407d40
jmp case.0x407469.16
mov edx, dword [esp + 0x18]
add edx, ebp
inc edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x84], edx
test edx, edx
je 0x40813f
xor eax, eax
cmp eax, dword [esp + 0x50]
ja case.default.0x407469
jb 0x407e2b
cmp edx, dword [esp + 0x4c]
ja case.default.0x407469
mov eax, dword [esp + 0x80]
add eax, 2
mov dword [esp + 0x80], eax
cdq
add dword [esp + 0x4c], eax
adc dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x48], 0
je 0x408153
mov eax, dword [esp + 0x9c]
sub eax, edx
mov edx, dword [esp + 0x38]
cmp eax, edx
jb 0x407e67
add eax, edx
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x9c]
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]
mov al, byte [esp + 0x54]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x80]
dec dword [esp + 0x48]
dec eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x80], eax
test eax, eax
jg case.0x407469.28
push 2
pop eax
jmp 0x407b29
mov eax, dword [esp + 0x58]
mov ecx, eax
mov dword [esp + 0x28], 0x12
mov dword [esp + 0x5c], ecx
jmp 0x407f1e
test esi, esi
jne 0x407f05
mov edx, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xb8]
shl eax, 4
add edx, 4
add edx, eax
push 3
mov dword [esp + 0x5c], edx
pop esi
jmp 0x407fee
mov ecx, dword [esp + 0x58]
add ecx, 2
mov dword [esp + 0x28], 0x13
mov dword [esp + 0x5c], ecx
jmp 0x407f1e
mov ecx, dword [esp + 0x5c]
movzx edx, word [ecx]
mov eax, ebx
shr eax, 0xb
mov esi, edx
imul eax, esi
cmp edi, eax
jae 0x407f46
mov ebx, eax
mov eax, 0x800
sub eax, esi
sar eax, 5
add eax, edx
mov word [ecx], ax
xor eax, eax
mov esi, eax
jmp 0x407f61
sub edi, eax
sub ebx, eax
mov ax, dx
mov dword [esp + 0xa4], edi
shr ax, 5
xor esi, esi
sub dx, ax
inc esi
mov word [ecx], dx
mov dword [esp + 0x70], esi
mov dword [esp + 0xa0], ebx
cmp ebx, 0x1000000
jae 0x407fa7
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40815d
mov ecx, dword [esp + 0x3c]
shl ebx, 8
dec eax
mov dword [esp + 0x40], eax
shl edi, 8
movzx eax, byte [ecx]
or edi, eax
mov dword [esp + 0xa0], ebx
inc ecx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x28]
jmp 0x407b25
test esi, esi
jne 0x407fd7
mov edx, dword [esp + 0x58]
push 8
pop eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xb8]
shl eax, 4
add edx, 0x104
jmp 0x407ef7
add dword [esp + 0x58], 0x204
push 0x10
pop eax
push 8
mov dword [esp + 0x84], eax
pop eax
mov esi, eax
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x70], esi
xor edx, edx
mov ecx, esi
inc edx
mov dword [esp + 0x60], edx
jmp 0x40803d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x408167
mov edx, dword [esp + 0x3c]
shl ebx, 8
dec eax
mov dword [esp + 0x40], eax
shl edi, 8
movzx eax, byte [edx]
or edi, eax
mov dword [esp + 0xa0], ebx
inc edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x60]
dec ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x4080c3
lea eax, [edx + edx]
mov edx, dword [esp + 0x58]
add edx, eax
mov dword [esp + 0xb4], eax
mov eax, ebx
mov dword [esp + 0x5c], edx
shr eax, 0xb
movzx ebp, word [edx]
imul eax, ebp
mov dword [esp + 0x1c], ebp
cmp edi, eax
jae 0x408087
mov ebx, eax
mov eax, 0x800
sub eax, ebp
sar eax, 5
add eax, ebp
shl dword [esp + 0x60], 1
mov word [edx], ax
jmp 0x4080ab
sub edi, eax
sub ebx, eax
mov ax, bp
mov dword [esp + 0xa4], edi
shr ax, 5
sub bp, ax
mov eax, dword [esp + 0xb4]
inc eax
mov word [edx], bp
mov dword [esp + 0x60], eax
mov dword [esp + 0xa0], ebx
cmp ebx, 0x1000000
jae 0x408038
jmp case.0x407469.24
xor eax, eax
mov ecx, esi
inc eax
mov ebp, edx
shl eax, cl
sub ebp, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], ebp
jmp 0x407b25
mov eax, dword [esp + 0x2c]
add dword [esp + 0x80], ebp
mov dword [esp + 0x24], eax
jmp 0x407460
mov dword [esp + 0x24], 1
jmp 0x40816f
mov dword [esp + 0x24], 3
jmp 0x40816f
mov dword [esp + 0x24], 0xd
jmp 0x40816f
mov dword [esp + 0x24], 0xe
jmp 0x40816f
mov dword [esp + 0x24], 0xf
jmp 0x40816f
mov dword [esp + 0x24], 0x1a
jmp 0x40816f
mov dword [esp + 0x24], 0x1b
jmp 0x40816f
mov dword [esp + 0x24], 0xc
jmp 0x40816f
or dword [esp + 0x80], 0xffffffff
jmp 0x40816f
mov dword [esp + 0x24], 0x10
jmp 0x40816f
mov dword [esp + 0x24], 0x1c
jmp 0x40816f
mov dword [esp + 0x24], 5
jmp 0x40816f
mov dword [esp + 0x24], 0x18
mov edi, dword [esp + 0xc8]
lea esi, [esp + 0x24]
push 0x24
pop ecx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x408186
or eax, 0xffffffff
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc0
ret