Function at 0x404a00
Capabilities:
Encrypt data using rc4 ksa
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb04
mov eax, dword [0x457880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov edx, 1
push esi
push edi
mov dword [ebp - 0xa24], ecx
mov dword [ebp - 0xab4], eax
mov dword [ebp - 0xa64], edx
mov dword [ebp - 0xa54], eax
cmp dword [ecx + 0x2be3c], edx
jne 0x404a52
mov dword [ebp - 0xa64], 2
jmp 0x404a52
xor eax, eax
mov ebx, dword [ebp - 0xa24]
mov esi, dword [ebp - 0xa54]
cmp dword [ebx + esi*4 + 0x2ba74], eax
je 0x4065fd
mov dword [ebp - 0xabc], eax
mov dword [ebp - 0xab8], eax
mov eax, dword [ebx + esi*4 + 0x2ba74]
mov ecx, dword [eax]
lea edx, [ebp - 0xa9c]
push edx
push 0
push eax
mov eax, dword [ecx + 0x44]
mov edi, 1
call eax
test eax, eax
jne 0x406637
cmp dword [ebp - 0xa9c], 0x15
jne 0x404aa8
lea edi, [eax + 4]
mov esi, dword [ebx + esi*4 + 0x2ba74]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x4c]
push 0
push 0
lea edx, [ebp - 0xabc]
push edx
push 0
push esi
call eax
test eax, eax
jne 0x406607
mov esi, dword [ebp - 0xab8]
mov ecx, ebx
mov eax, dword [ecx + 0x2b7b0]
and eax, 0xf
mov dword [ebp - 0xaa4], esi
cmp eax, 3
jne 0x404b77
xor ebx, ebx
mov dword [ebp - 0xa30], ebx
cmp dword [ebp - 0xa80], ebx
jbe 0x404edd
mov eax, dword [ebp - 0xa84]
xor edx, edx
mov dword [ebp - 0xa5c], edx
test eax, eax
jbe 0x404b63
imul eax, ebx
add eax, edx
imul eax, edi
mov cl, bl
add cl, dl
mov byte [eax + esi], cl
mov eax, 1
cmp edi, eax
jbe 0x404b4c
mov ebx, dword [ebp - 0xa84]
imul ebx, dword [ebp - 0xa30]
mov edx, dword [ebp - 0xa5c]
add ebx, edx
imul ebx, edi
add ebx, eax
inc eax
mov byte [ebx + esi], cl
cmp eax, edi
jb 0x404b2a
mov eax, dword [ebp - 0xa84]
mov ebx, dword [ebp - 0xa30]
inc edx
mov dword [ebp - 0xa5c], edx
cmp edx, eax
jb 0x404b12
inc ebx
mov dword [ebp - 0xa30], ebx
cmp ebx, dword [ebp - 0xa80]
jb 0x404b06
jmp 0x404edd
cmp eax, 2
jne 0x404e7b
lea edx, [ebp - 0xa4c]
push edx
xor ebx, ebx
push 0x20019
push ebx
push str.SoftwareNVIDIA_CorporationGlobal_nViewKeystone
mov dword [ebp - 0xa4c], ebx
call fcn.00403110
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404edf
lea eax, [ebp - 0xa1c]
push eax
mov eax, dword [ebp - 0xa4c]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xaac]
push edx
push ebx
push str.LuminosityCompBitmap
push eax
mov dword [ebp - 0xaac], 1
mov dword [ebp - 0xa1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404e6c
mov edx, dword [0x457d68]
push 0x10
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x418]
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0xa48], eax
cmp eax, ebx
je 0x404e6c
mov ecx, dword [ebp - 0xa48]
xor eax, eax
mov dword [ebp - 0xae4], eax
mov dword [ebp - 0xae0], eax
mov dword [ebp - 0xadc], eax
mov dword [ebp - 0xad8], eax
mov dword [ebp - 0xad4], eax
mov dword [ebp - 0xad0], eax
mov dword [ebp - 0xacc], eax
mov dword [ebp - 0xac8], eax
mov dword [ebp - 0xac4], eax
mov dword [ebp - 0xac0], eax
lea eax, [ebp - 0xb00]
push eax
push 0x18
push ecx
mov dword [ebp - 0xae8], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0xafc]
mov ecx, dword [ebp - 0xaf8]
mov dword [ebp - 0xae4], eax
imul eax, ecx
lea eax, [eax + eax*2]
mov edx, 1
mov word [ebp - 0xadc], dx
push eax
mov edx, 0x18
push ebx
mov dword [ebp - 0xae8], 0x28
mov dword [ebp - 0xae0], ecx
mov word [ebp - 0xada], dx
mov dword [ebp - 0xad8], ebx
mov dword [ebp - 0xad4], eax
mov dword [ebp - 0xac8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xa58], eax
cmp eax, ebx
je 0x404e5f
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 0xa58]
mov edx, dword [ebp - 0xaf8]
push 0
mov ebx, eax
lea eax, [ebp - 0xae8]
push eax
mov eax, dword [ebp - 0xa48]
push ecx
push edx
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
xor ecx, ecx
cmp dword [ebp - 0xa80], ecx
jbe 0x404e50
xor edx, edx
mov dword [ebp - 0xa30], edx
cmp dword [ebp - 0xa84], edx
jbe 0x404e43
mov dword [ebp - 0xa50], edx
lea esp, [esp]
mov ebx, dword [ebp - 0xafc]
cmp edx, ebx
jae 0x404ded
mov eax, dword [ebp - 0xaf8]
cmp ecx, eax
jae 0x404ded
mov edx, dword [ebp - 0xa50]
sub eax, ecx
dec eax
imul eax, ebx
lea edx, [edx + eax*2]
add edx, eax
mov eax, dword [ebp - 0xa58]
movzx bx, byte [eax + edx + 1]
add eax, edx
movzx dx, byte [eax + 2]
movzx ax, byte [eax]
add dx, bx
add dx, ax
movzx edx, dx
mov eax, 0x55555556
imul edx
mov ebx, ecx
imul ebx, dword [ebp - 0xa84]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0xa30]
add ebx, edx
imul ebx, edi
mov byte [ebx + esi], al
mov dword [ebp - 0xa5c], 1
cmp edi, 1
jbe 0x404e29
mov ebx, ecx
imul ebx, dword [ebp - 0xa84]
add ebx, edx
mov edx, dword [ebp - 0xa5c]
imul ebx, edi
add ebx, edx
inc edx
mov dword [ebp - 0xa5c], edx
cmp edx, edi
mov edx, dword [ebp - 0xa30]
mov byte [ebx + esi], al
jb 0x404dc1
jmp 0x404e29
mov eax, ecx
imul eax, dword [ebp - 0xa84]
add eax, edx
imul eax, edi
mov byte [eax + esi], 0xff
mov eax, 1
cmp edi, eax
jbe 0x404e29
jmp 0x404e10
mov ebx, ecx
imul ebx, dword [ebp - 0xa84]
add ebx, edx
imul ebx, edi
add ebx, eax
inc eax
mov byte [ebx + esi], 0xff
cmp eax, edi
jb 0x404e10
add dword [ebp - 0xa50], 3
inc edx
mov dword [ebp - 0xa30], edx
cmp edx, dword [ebp - 0xa84]
jb 0x404d40
inc ecx
cmp ecx, dword [ebp - 0xa80]
jb 0x404d22
mov ecx, dword [ebp - 0xa58]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
mov edx, dword [ebp - 0xa48]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xa4c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404edf
xor edx, edx
cmp dword [ebp - 0xa80], edx
jbe 0x404edd
mov eax, dword [ebp - 0xa84]
jmp 0x404e90
xor ecx, ecx
test eax, eax
jbe 0x404ed4
mov ebx, edx
imul ebx, eax
add ebx, ecx
imul ebx, edi
mov eax, 1
mov byte [ebx + esi], 0xff
cmp edi, eax
jbe 0x404ec9
lea ecx, [ecx]
mov ebx, edx
imul ebx, dword [ebp - 0xa84]
add ebx, ecx
imul ebx, edi
add ebx, eax
inc eax
mov byte [ebx + esi], 0xff
cmp eax, edi
jb 0x404eb0
mov eax, dword [ebp - 0xa84]
inc ecx
cmp ecx, eax
jb 0x404e96
inc edx
cmp edx, dword [ebp - 0xa80]
jb 0x404e90
xor ebx, ebx
mov ecx, dword [ebp - 0xa24]
mov edx, dword [ecx + 0x2b7b0]
and dl, 0xf0
cmp dl, 0x10
jne 0x4064ea
push 0x206
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call sub.MSVCR90.dll_memset
mov esi, dword [ebp - 0xa24]
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.004044a0
mov eax, esi
cmp dword [eax + 0x2be58], 2
je 0x4059c3
lea ecx, [ebp - 0xa6c]
push ecx
push 0x20019
push ebx
push str.SoftwareNVIDIA_CorporationGlobal_nViewKeystone
mov dword [ebp - 0xa6c], ebx
call fcn.00403110
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4064ea
mov dword [ebp - 0xa78], 4
mov dword [ebp - 0xa5c], ebx
mov eax, dword [ebp - 0xa5c]
xor ecx, ecx
xor esi, esi
dec eax
or bl, 0xff
mov dword [ebp - 0xa30], ecx
mov dword [ebp - 0xa50], ecx
mov dword [ebp - 0xa28], ecx
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa40], ecx
mov dword [ebp - 0xa3c], ecx
mov byte [ebp - 0xa29], 0
mov dword [ebp - 0xa58], ecx
mov dword [ebp - 0xa4c], ecx
mov dword [ebp - 0xa60], ecx
mov dword [ebp - 0xa74], ecx
mov dword [ebp - 0xa48], ecx
mov dword [ebp - 0xa38], ecx
mov dword [ebp - 0xa70], 4
cmp eax, 4
ja case.default.0x404fe2
jmp dword [eax*4 + 0x406650]
cmp dword [ebp - 0xa64], 1
jle 0x405418
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], ecx
je 0x405418
lea eax, [ebp - 0xa70]
push eax
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa78]
push edx
push 0
push str.LuminosityBlendHorz
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xa38]
movzx esi, cx
mov dword [ebp - 0xa1c], esi
test esi, esi
je 0x405416
mov edx, dword [ebp - 0xa84]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
mov ebx, ecx
add esi, eax
shr ebx, 0x18
cmp dword [ebp - 0xa54], 0
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa28], edx
mov dword [ebp - 0xa1c], esi
jne 0x4050a5
mov eax, dword [ebp - 0xa24]
mov eax, dword [eax + 0x2be48]
add eax, dword [ebp - 0xa80]
mov dword [ebp - 0xa48], 1
shr eax, 1
sub eax, esi
mov dword [ebp - 0xa50], eax
jmp 0x405416
mov ecx, dword [ebp - 0xa24]
mov ecx, dword [ecx + 0x2be48]
mov edx, dword [ebp - 0xa80]
lea eax, [ecx + edx]
shr eax, 1
sub eax, ecx
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa48], 1
jmp 0x405416
cmp dword [ebp - 0xa64], 1
je 0x4050f6
cmp dword [ebp - 0xa54], ecx
je 0x4050f6
mov eax, dword [ebp - 0xa24]
cmp dword [eax + 0x2be40], ecx
je 0x405418
lea ecx, [ebp - 0xa70]
push ecx
mov ecx, dword [ebp - 0xa6c]
lea edx, [ebp - 0xa38]
push edx
lea eax, [ebp - 0xa78]
push eax
push 0
push str.LuminosityBlendLeft
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xa38]
movzx edx, cx
mov dword [ebp - 0xa28], edx
test edx, edx
je 0x405416
mov esi, dword [ebp - 0xa80]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
add edx, eax
mov ebx, ecx
mov dword [ebp - 0xa3c], eax
mov dword [ebp - 0xa28], edx
mov dword [ebp - 0xa1c], esi
shr ebx, 0x18
mov dword [ebp - 0xa60], 1
jmp 0x405416
cmp dword [ebp - 0xa64], 1
je 0x405191
cmp dword [ebp - 0xa54], ecx
je 0x405191
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], ecx
jne 0x405418
lea eax, [ebp - 0xa70]
push eax
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa78]
push edx
push 0
push str.LuminosityBlendTop
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xa38]
movzx esi, ax
mov dword [ebp - 0xa1c], esi
test esi, esi
je 0x405416
mov ecx, dword [ebp - 0xa84]
mov ebx, eax
shr eax, 0x10
and eax, 0xff
shr ebx, 0x18
add esi, eax
mov dword [ebp - 0xa28], ecx
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa58], 1
jmp 0x405416
cmp dword [ebp - 0xa64], 1
je 0x40522a
cmp dword [ebp - 0xa54], ecx
jne 0x40522a
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], ecx
je 0x405418
lea eax, [ebp - 0xa70]
push eax
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa78]
push edx
push 0
push str.LuminosityBlendRight
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xa38]
movzx ecx, ax
mov dword [ebp - 0xa28], ecx
test ecx, ecx
je 0x405416
mov esi, dword [ebp - 0xa80]
mov ebx, eax
shr eax, 0x10
and eax, 0xff
shr ebx, 0x18
add ecx, eax
mov dword [ebp - 0xa3c], eax
mov eax, dword [ebp - 0xa84]
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa28], ecx
mov dword [ebp - 0xa4c], 1
jmp 0x40540e
cmp dword [ebp - 0xa64], 1
je 0x4052c9
cmp dword [ebp - 0xa54], ecx
jne 0x4052c9
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], ecx
jne 0x405418
lea eax, [ebp - 0xa70]
push eax
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa78]
push edx
push 0
push str.LuminosityBlendBottom
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xa38]
movzx esi, ax
mov dword [ebp - 0xa1c], esi
test esi, esi
je 0x405416
mov ecx, dword [ebp - 0xa84]
mov ebx, eax
shr eax, 0x10
and eax, 0xff
add esi, eax
mov dword [ebp - 0xa40], eax
mov eax, dword [ebp - 0xa80]
shr ebx, 0x18
sub eax, esi
mov dword [ebp - 0xa28], ecx
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa50], eax
mov byte [ebp - 0xa29], 1
jmp 0x405416
cmp dword [ebp - 0xa64], 1
jle 0x405418
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], ecx
jne 0x405418
lea eax, [ebp - 0xa70]
push eax
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa78]
push edx
push 0
push str.LuminosityBlendVert
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xa38]
movzx ecx, ax
mov dword [ebp - 0xa28], ecx
test ecx, ecx
je 0x405416
mov esi, dword [ebp - 0xa80]
mov ebx, eax
shr eax, 0x10
and eax, 0xff
add ecx, eax
shr ebx, 0x18
cmp dword [ebp - 0xa54], 0
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa3c], eax
mov dword [ebp - 0xa28], ecx
jne 0x4053ed
mov edx, dword [ebp - 0xa24]
mov eax, dword [edx + 0x2be44]
add eax, dword [ebp - 0xa84]
jmp 0x405402
mov eax, dword [ebp - 0xa24]
mov ecx, dword [eax + 0x2be44]
mov edx, dword [ebp - 0xa84]
lea eax, [ecx + edx]
shr eax, 1
mov dword [ebp - 0xa74], 1
sub eax, ecx
mov dword [ebp - 0xa30], eax
xor ecx, ecx
mov eax, dword [ebp - 0xa24]
cmp dword [eax + 0x2be58], 1
jne 0x40569f
cmp dword [ebp - 0xa4c], ecx
jne 0x405468
cmp byte [ebp - 0xa29], 0
jne 0x405468
cmp dword [ebp - 0xa60], ecx
jne 0x405468
cmp dword [ebp - 0xa58], ecx
jne 0x405468
cmp dword [ebp - 0xa74], ecx
jne 0x405468
cmp dword [ebp - 0xa48], ecx
je 0x40599b
mov esi, dword [ebp - 0xa1c]
xor ecx, ecx
cmp esi, ecx
mov dword [ebp - 0xa3c], ecx
jle 0x40599b
cmp dword [ebp - 0xa28], 0
mov dword [ebp - 0xa34], 0
jle 0x405681
mov ecx, dword [ebp - 0xa3c]
mov edx, dword [ebp - 0xa50]
mov esi, dword [ebp - 0xa34]
add ecx, edx
mov dword [ebp - 0xaac], ecx
mov ecx, dword [ebp - 0xa28]
mov eax, dword [ebp - 0xaac]
imul eax, dword [ebp - 0xa84]
add eax, esi
add eax, dword [ebp - 0xa30]
cmp dword [ebp - 0xa74], 0
mov dl, bl
mov dword [ebp - 0xa7c], eax
je 0x405512
cmp dword [ebp - 0xa54], 0
fild dword [ebp - 0xa34]
je 0x4054ff
mov dword [ebp - 0xa44], ecx
fild dword [ebp - 0xa44]
test ecx, ecx
jge 0x4054f8
fadd dword [0x451738]
fdivp st(1)
jmp 0x4055d7
mov dword [ebp - 0xa44], ecx
fild dword [ebp - 0xa44]
test ecx, ecx
jmp 0x4055c9
cmp dword [ebp - 0xa60], 0
je 0x40552f
fild dword [ebp - 0xa34]
mov dword [ebp - 0xa44], ecx
fild dword [ebp - 0xa44]
jmp 0x4054ee
cmp dword [ebp - 0xa4c], 0
je 0x405551
fild dword [ebp - 0xa34]
mov dword [ebp - 0xa44], ecx
fild dword [ebp - 0xa44]
test ecx, ecx
jmp 0x4055c9
cmp dword [ebp - 0xa48], 0
je 0x405586
cmp dword [ebp - 0xa54], 0
fild dword [ebp - 0xa3c]
fild dword [ebp - 0xa1c]
je 0x40557c
mov eax, dword [ebp - 0xa1c]
test eax, eax
jmp 0x4054f0
mov ecx, dword [ebp - 0xa1c]
test ecx, ecx
jmp 0x4055c9
cmp dword [ebp - 0xa58], 0
je 0x4055a8
mov edx, dword [ebp - 0xa1c]
fild dword [ebp - 0xa3c]
fild dword [ebp - 0xa1c]
test edx, edx
jmp 0x4054f0
cmp byte [ebp - 0xa29], 0
je 0x405634
mov eax, dword [ebp - 0xa1c]
fild dword [ebp - 0xa3c]
fild dword [ebp - 0xa1c]
test eax, eax
jge 0x4055d1
fadd dword [0x451738]
fdivp st(1)
fld1
fsubrp st(1)
mov esi, dword [ebp - 0xa24]
fstp dword [ebp - 0xa20]
fld dword [ebp - 0xa20]
push ecx
fstp dword [esp]
call fcn.00404680
fmul qword [0x451700]
mov esi, dword [ebp - 0xa34]
fnstcw word [ebp - 0xa3e]
movzx eax, word [ebp - 0xa3e]
or eax, 0xc00
mov dword [ebp - 0xa44], eax
mov eax, dword [ebp - 0xa7c]
fldcw word [ebp - 0xa44]
fistp dword [ebp - 0xa44]
mov dl, byte [ebp - 0xa44]
fldcw word [ebp - 0xa3e]
mov ecx, dword [ebp - 0xaa4]
imul eax, edi
add ecx, eax
movzx eax, byte [ecx]
movzx edx, dl
imul eax, edx
mov edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x40566c
lea eax, [ecx + 1]
lea ecx, [edi - 1]
push ecx
push edx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xa28]
inc esi
cmp esi, ecx
mov dword [ebp - 0xa34], esi
jl 0x4054ad
mov eax, dword [ebp - 0xa3c]
inc eax
cmp eax, dword [ebp - 0xa1c]
mov dword [ebp - 0xa3c], eax
jl 0x405476
jmp 0x40599b
cmp dword [ebp - 0xa4c], ecx
jne 0x4056dc
cmp byte [ebp - 0xa29], 0
jne 0x4056dc
cmp dword [ebp - 0xa60], ecx
jne 0x4056dc
cmp dword [ebp - 0xa58], ecx
jne 0x4056dc
cmp dword [ebp - 0xa74], ecx
jne 0x4056dc
cmp dword [ebp - 0xa48], ecx
je 0x40599b
mov esi, dword [ebp - 0xa1c]
xor ecx, ecx
cmp esi, ecx
mov dword [ebp - 0xa20], ecx
jle 0x40599b
lea ebx, [ebx]
cmp dword [ebp - 0xa28], 0
mov dword [ebp - 0xa68], 0
jle 0x405982
mov edx, dword [ebp - 0xa50]
mov eax, dword [ebp - 0xa20]
mov ecx, dword [ebp - 0xa3c]
add eax, edx
mov edx, dword [ebp - 0xa68]
mov dword [ebp - 0xaac], eax
mov eax, dword [ebp - 0xa3c]
sub eax, dword [ebp - 0xa28]
mov dword [ebp - 0xa34], eax
mov esi, dword [ebp - 0xaac]
imul esi, dword [ebp - 0xa84]
add esi, edx
add esi, dword [ebp - 0xa30]
cmp edx, ecx
mov al, bl
mov dword [ebp - 0xa44], esi
jge 0x405799
cmp dword [ebp - 0xa74], 0
je 0x405772
cmp dword [ebp - 0xa54], 0
jne 0x40578a
mov eax, ecx
sub eax, edx
jmp 0x4057c5
cmp dword [ebp - 0xa4c], 0
je 0x405781
mov eax, ecx
sub eax, edx
jmp 0x4057c5
cmp dword [ebp - 0xa60], 0
je 0x4057d8
lea eax, [edx + 1]
movzx edx, bl
imul eax, edx
xor edx, edx
div ecx
jmp 0x4057d8
mov esi, dword [ebp - 0xa28]
sub esi, ecx
cmp edx, esi
jl 0x4057d8
cmp dword [ebp - 0xa74], 0
je 0x40581e
cmp dword [ebp - 0xa54], 0
je 0x405830
mov eax, dword [ebp - 0xa34]
lea eax, [edx + eax + 1]
movzx edx, bl
mov esi, 0xff
sub esi, edx
imul eax, esi
xor edx, edx
div ecx
add al, bl
mov edx, dword [ebp - 0xa20]
mov esi, dword [ebp - 0xa40]
cmp edx, esi
jge 0x4058a2
cmp dword [ebp - 0xa48], 0
je 0x405858
cmp dword [ebp - 0xa54], 0
jne 0x405846
mov eax, esi
sub eax, edx
movzx edx, bl
mov esi, 0xff
sub esi, edx
imul eax, esi
xor edx, edx
div dword [ebp - 0xa40]
add al, bl
jmp 0x405929
cmp dword [ebp - 0xa60], 0
jne 0x4057bb
cmp dword [ebp - 0xa4c], 0
je 0x4057d8
mov eax, ecx
sub eax, edx
sub eax, dword [ebp - 0xa34]
movzx edx, bl
imul eax, edx
xor edx, edx
div ecx
jmp 0x4057d8
lea eax, [edx + 1]
movzx edx, bl
imul eax, edx
xor edx, edx
div esi
jmp 0x405929
cmp byte [ebp - 0xa29], 0
je 0x405889
mov eax, dword [ebp - 0xa40]
sub eax, dword [ebp - 0xa20]
movzx edx, bl
mov esi, 0xff
sub esi, edx
imul eax, esi
xor edx, edx
div dword [ebp - 0xa40]
add al, bl
jmp 0x405929
cmp dword [ebp - 0xa58], 0
je 0x405929
mov eax, dword [ebp - 0xa20]
inc eax
jmp 0x40591b
mov edx, dword [ebp - 0xa1c]
sub edx, esi
cmp dword [ebp - 0xa20], edx
jl 0x405929
mov esi, dword [ebp - 0xa20]
sub esi, dword [ebp - 0xa1c]
add esi, dword [ebp - 0xa40]
cmp dword [ebp - 0xa48], 0
je 0x4058e7
cmp dword [ebp - 0xa54], 0
movzx edx, bl
jne 0x4058f3
mov eax, dword [ebp - 0xa40]
sub eax, esi
jmp 0x40591e
cmp dword [ebp - 0xa58], 0
je 0x40590a
movzx edx, bl
mov eax, 0xff
sub eax, edx
inc esi
imul eax, esi
xor edx, edx
div dword [ebp - 0xa40]
add al, bl
jmp 0x405929
cmp byte [ebp - 0xa29], 0
je 0x405929
mov eax, dword [ebp - 0xa40]
sub eax, esi
movzx edx, bl
imul eax, edx
xor edx, edx
div dword [ebp - 0xa40]
mov esi, dword [ebp - 0xa44]
mov edx, dword [ebp - 0xaa4]
imul esi, edi
add esi, edx
movzx edx, byte [esi]
movzx eax, al
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [esi], dl
cmp edi, 1
jbe 0x405969
lea ecx, [edi - 1]
push ecx
push edx
inc esi
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0xa3c]
add esp, 0xc
mov edx, dword [ebp - 0xa68]
inc edx
cmp edx, dword [ebp - 0xa28]
mov dword [ebp - 0xa68], edx
jl 0x405739
mov eax, dword [ebp - 0xa20]
inc eax
cmp eax, dword [ebp - 0xa1c]
mov dword [ebp - 0xa20], eax
jl 0x4056f0
mov eax, dword [ebp - 0xa5c]
inc eax
cmp eax, 6
mov dword [ebp - 0xa5c], eax
jl 0x404f72
mov edx, dword [ebp - 0xa6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4064e8
mov eax, dword [ebp - 0xa64]
mov ecx, 1
cmp eax, ecx
jle 0x4059e0
mov dword [ebp - 0xa30], ecx
cmp dword [ebp - 0xa54], ebx
je 0x4059e6
mov dword [ebp - 0xa30], ebx
cmp eax, ecx
jle 0x4059f8
mov dword [ebp - 0xa50], ecx
cmp dword [ebp - 0xa54], ebx
jne 0x4059fe
mov dword [ebp - 0xa50], ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xa6c], esi
cmp esi, 0xffffffff
je 0x4064ea
lea ecx, [ebp - 0xa3c]
push ecx
lea edx, [ebp - 0xa5c]
push edx
push 0x450e40
mov dword [ebp - 0xa5c], ebx
mov dword [ebp - 0xa3c], ebx
mov dword [ebp - 0xa68], ebx
mov dword [ebp - 0xab0], ebx
mov dword [ebp - 0xa48], ebx
mov dword [ebp - 0xa7c], ebx
mov dword [ebp - 0xa60], ebx
mov dword [ebp - 0xa44], ebx
call fcn.00404710
add esp, 0xc
test eax, eax
je 0x4064e1
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa68]
push ecx
push 0x450e44
call fcn.00404710
add esp, 0xc
test eax, eax
je 0x4064e1
lea edx, [ebp - 0xa7c]
push edx
lea eax, [ebp - 0xa48]
push eax
push 0x450e48
call fcn.00404710
add esp, 0xc
test eax, eax
je 0x4064e1
lea ecx, [ebp - 0xa44]
push ecx
lea edx, [ebp - 0xa60]
push edx
push str._EDGES
call fcn.00404710
add esp, 0xc
test eax, eax
je 0x4064e1
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
xor eax, eax
mov dword [ebp - 0xa28], eax
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa20], eax
mov dword [ebp - 0xa74], eax
mov dword [ebp - 0xa58], eax
mov eax, dword [ebp - 0xa3c]
sub eax, dword [ebp - 0xa5c]
mov dword [ebp - 0xa4c], eax
inc eax
push eax
call ebx
add esp, 4
mov dword [ebp - 0xa1c], eax
test eax, eax
je 0x4064e1
mov eax, dword [ebp - 0xa4c]
inc eax
push 0
push eax
mov eax, dword [ebp - 0xa1c]
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0xa5c]
add esp, 0xc
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xa4c]
mov ecx, dword [ebp - 0xa1c]
push 0
lea edx, [ebp - 0xa74]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xa1c]
lea edx, [ebp - 0xa28]
push edx
push 0x450d18
push eax
call dword [sym.imp.MSVCR90.dll_sscanf_s]
mov ecx, dword [ebp - 0xa1c]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 0xab0]
sub eax, dword [ebp - 0xa68]
add esp, 4
mov dword [ebp - 0xab0], eax
inc eax
push eax
call ebx
add esp, 4
mov dword [ebp - 0xa1c], eax
test eax, eax
je 0x4064e1
mov eax, dword [ebp - 0xab0]
mov edx, dword [ebp - 0xa1c]
push 0
inc eax
push eax
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0xa68]
add esp, 0xc
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0xab0]
mov eax, dword [ebp - 0xa1c]
push 0
lea ecx, [ebp - 0xa74]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xa1c]
lea ecx, [ebp - 0xa34]
push ecx
push 0x450d18
push edx
call dword [sym.imp.MSVCR90.dll_sscanf_s]
mov eax, dword [ebp - 0xa1c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 0xa7c]
sub eax, dword [ebp - 0xa48]
add esp, 4
mov dword [ebp - 0xa7c], eax
inc eax
push eax
call ebx
add esp, 4
mov dword [ebp - 0xa1c], eax
test eax, eax
je 0x4064e1
mov eax, dword [ebp - 0xa7c]
mov ecx, dword [ebp - 0xa1c]
push 0
inc eax
push eax
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [ebp - 0xa48]
add esp, 0xc
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xa7c]
mov edx, dword [ebp - 0xa1c]
push 0
lea eax, [ebp - 0xa74]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xa1c]
lea eax, [ebp - 0xa20]
push eax
push 0x450d18
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf_s]
mov edx, dword [ebp - 0xa1c]
add esp, 0xc
push edx
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 0xa44]
sub eax, dword [ebp - 0xa60]
add esp, 4
mov dword [ebp - 0xa44], eax
inc eax
push eax
call ebx
add esp, 4
mov dword [ebp - 0xa1c], eax
test eax, eax
je 0x4064e1
mov eax, dword [ebp - 0xa44]
inc eax
push 0
push eax
mov eax, dword [ebp - 0xa1c]
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0xa60]
add esp, 0xc
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xa44]
mov ecx, dword [ebp - 0xa1c]
push 0
lea edx, [ebp - 0xa74]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xa1c]
lea edx, [ebp - 0xa58]
push edx
push 0x450d18
push eax
call dword [sym.imp.MSVCR90.dll_sscanf_s]
mov ecx, dword [ebp - 0xa1c]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [ebp - 0xa28]
add esp, 4
push edx
call ebx
mov dword [ebp - 0xa70], eax
mov eax, dword [ebp - 0xa28]
add esp, 4
push eax
call ebx
mov ecx, dword [ebp - 0xa34]
add esp, 4
push ecx
mov dword [ebp - 0xa3c], eax
call ebx
mov edx, dword [ebp - 0xa34]
add esp, 4
push edx
mov dword [ebp - 0xa4c], eax
call ebx
mov dword [ebp - 0xa60], eax
mov eax, dword [ebp - 0xa20]
add esp, 4
push eax
call ebx
mov ecx, dword [ebp - 0xa20]
add esp, 4
push ecx
mov dword [ebp - 0xa38], eax
call ebx
add esp, 4
cmp dword [ebp - 0xa70], 0
mov ebx, eax
mov dword [ebp - 0xa48], ebx
je 0x406482
cmp dword [ebp - 0xa3c], 0
je 0x406466
cmp dword [ebp - 0xa4c], 0
je 0x406466
cmp dword [ebp - 0xa60], 0
je 0x406466
cmp dword [ebp - 0xa38], 0
je 0x406466
test eax, eax
je 0x406466
mov edx, dword [ebp - 0xa28]
mov esi, dword [ebp - 0xa70]
push edx
push 0
push esi
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0xa28]
mov ebx, dword [ebp - 0xa3c]
add esp, 0xc
push eax
push 0
push ebx
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0xa34]
mov edx, dword [ebp - 0xa4c]
add esp, 0xc
push ecx
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0xa34]
mov ecx, dword [ebp - 0xa60]
add esp, 0xc
push eax
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [ebp - 0xa20]
mov eax, dword [ebp - 0xa38]
add esp, 0xc
push edx
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0xa20]
mov edx, dword [ebp - 0xa48]
add esp, 0xc
push ecx
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0xa28]
add esp, 0xc
push eax
push esi
mov esi, dword [ebp - 0xa6c]
mov edx, 0x450e54
mov eax, esi
call fcn.004048c0
mov ecx, dword [ebp - 0xa28]
push ecx
push ebx
mov edx, 0x450e58
mov eax, esi
call fcn.004048c0
mov edx, dword [ebp - 0xa34]
mov eax, dword [ebp - 0xa4c]
push edx
push eax
mov edx, 0x450e5c
mov eax, esi
call fcn.004048c0
mov ecx, dword [ebp - 0xa34]
mov edx, dword [ebp - 0xa60]
push ecx
push edx
mov edx, 0x450e60
mov eax, esi
call fcn.004048c0
mov eax, dword [ebp - 0xa20]
mov ecx, dword [ebp - 0xa38]
push eax
push ecx
mov edx, 0x450e64
mov eax, esi
call fcn.004048c0
mov edx, dword [ebp - 0xa20]
mov eax, dword [ebp - 0xa48]
push edx
push eax
mov edx, 0x450e68
mov eax, esi
call fcn.004048c0
add esp, 0x30
test byte [ebp - 0xa58], 1
je 0x40600d
cmp dword [ebp - 0xa64], 1
je 0x405f8b
mov ecx, dword [ebp - 0xa24]
cmp dword [ecx + 0x2be40], 0
jne 0x405f8b
cmp dword [ebp - 0xa30], 0
je 0x40600d
xor ebx, ebx
cmp dword [ebp - 0xa28], ebx
jle 0x40600d
mov ecx, dword [ebp - 0xa80]
jmp 0x405fa0
xor esi, esi
test ecx, ecx
jle 0x406002
jmp 0x405fb0
mov edx, dword [ebp - 0xaa4]
mov eax, esi
imul eax, dword [ebp - 0xa84]
add eax, ebx
imul eax, edi
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa70]
movzx edx, byte [ebx + eax]
movzx eax, byte [ecx]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x405ff7
lea eax, [edi - 1]
push eax
inc ecx
push edx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xa80]
inc esi
cmp esi, ecx
jl 0x405fb0
inc ebx
cmp ebx, dword [ebp - 0xa28]
jl 0x405fa0
jmp 0x406013
mov ecx, dword [ebp - 0xa80]
test byte [ebp - 0xa58], 2
je 0x4060b6
cmp dword [ebp - 0xa64], 1
je 0x406041
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], 0
jne 0x406041
cmp dword [ebp - 0xa50], 0
je 0x4060b6
xor ebx, ebx
cmp dword [ebp - 0xa28], ebx
jle 0x4060b6
jmp 0x406050
xor eax, eax
test ecx, ecx
jle 0x4060ad
lea esi, [eax + 1]
mov ecx, dword [ebp - 0xaa4]
mov eax, esi
imul eax, dword [ebp - 0xa84]
sub eax, ebx
dec eax
imul eax, edi
movzx edx, byte [ecx + eax]
add ecx, eax
mov eax, dword [ebp - 0xa3c]
movzx eax, byte [ebx + eax]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x4060a1
lea eax, [edi - 1]
push eax
inc ecx
push edx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xa80]
mov eax, esi
cmp eax, ecx
jl 0x406056
inc ebx
cmp ebx, dword [ebp - 0xa28]
jl 0x406050
test byte [ebp - 0xa58], 4
je 0x40615e
cmp dword [ebp - 0xa64], 1
je 0x4060e4
mov edx, dword [ebp - 0xa24]
cmp dword [edx + 0x2be40], 0
je 0x4060e4
cmp dword [ebp - 0xa30], 0
je 0x40615e
mov edx, dword [ebp - 0xa84]
xor ebx, ebx
test edx, edx
jle 0x406164
xor esi, esi
cmp dword [ebp - 0xa34], esi
jle 0x406151
lea ebx, [ebx]
mov ecx, dword [ebp - 0xaa4]
mov eax, esi
imul eax, edx
mov edx, dword [ebp - 0xa4c]
movzx edx, byte [esi + edx]
add eax, ebx
imul eax, edi
add ecx, eax
movzx eax, byte [ecx]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x406142
lea eax, [edi - 1]
push eax
inc ecx
push edx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xa84]
inc esi
cmp esi, dword [ebp - 0xa34]
jl 0x406100
inc ebx
cmp ebx, edx
jl 0x4060f0
mov ecx, dword [ebp - 0xa80]
jmp 0x406164
mov edx, dword [ebp - 0xa84]
test byte [ebp - 0xa58], 8
je 0x4061ff
cmp dword [ebp - 0xa64], 1
je 0x406192
mov eax, dword [ebp - 0xa24]
cmp dword [eax + 0x2be40], 0
je 0x406192
cmp dword [ebp - 0xa50], 0
je 0x4061ff
xor ebx, ebx
test edx, edx
jle 0x4061ff
xor esi, esi
cmp dword [ebp - 0xa34], esi
jle 0x4061fa
mov eax, dword [ebp - 0xa60]
sub ecx, esi
dec ecx
imul ecx, edx
mov edx, dword [ebp - 0xaa4]
add ecx, ebx
imul ecx, edi
add ecx, edx
movzx edx, byte [esi + eax]
movzx eax, byte [ecx]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x4061e5
lea eax, [edi - 1]
push eax
inc ecx
push edx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xa80]
mov edx, dword [ebp - 0xa84]
inc esi
cmp esi, dword [ebp - 0xa34]
jl 0x4061a2
inc ebx
cmp ebx, edx
jl 0x406198
test byte [ebp - 0xa58], 0x10
je 0x406466
cmp dword [ebp - 0xa64], 1
jle 0x406466
mov eax, dword [ebp - 0xa24]
xor esi, esi
cmp dword [eax + 0x2be40], esi
jne 0x40635b
cmp dword [ebp - 0xa20], esi
jle 0x406466
mov eax, dword [ebp - 0xa48]
sub eax, dword [ebp - 0xa38]
mov dword [ebp - 0xa68], eax
xor ebx, ebx
mov dword [ebp - 0xa5c], ebx
test ecx, ecx
jle 0x406349
jmp 0x406260
cmp dword [ebp - 0xa30], 0
je 0x4062c9
mov ecx, dword [ebp - 0xa24]
mov eax, dword [ecx + 0x2be44]
add eax, edx
mov ecx, ebx
imul ecx, edx
mov edx, dword [ebp - 0xaa4]
shr eax, 1
add eax, ecx
sub eax, esi
imul eax, edi
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa68]
lea edx, [esi + eax]
mov eax, dword [ebp - 0xa38]
movzx edx, byte [edx + eax]
movzx eax, byte [ecx]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x40632e
lea eax, [edi - 1]
push eax
inc ecx
push edx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x40632e
cmp dword [ebp - 0xa50], 0
je 0x40633a
mov ecx, dword [ebp - 0xa24]
imul ebx, edx
mov ecx, dword [ecx + 0x2be44]
lea eax, [ecx + edx]
mov edx, dword [ebp - 0xaa4]
shr eax, 1
add eax, ebx
sub eax, ecx
add eax, esi
imul eax, edi
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa38]
movzx edx, byte [esi + eax]
movzx eax, byte [ecx]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x406328
lea eax, [edi - 1]
push eax
inc ecx
push edx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ebx, dword [ebp - 0xa5c]
mov ecx, dword [ebp - 0xa80]
mov edx, dword [ebp - 0xa84]
inc ebx
cmp ebx, ecx
mov dword [ebp - 0xa5c], ebx
jl 0x406260
inc esi
cmp esi, dword [ebp - 0xa20]
jl 0x40624b
jmp 0x406466
cmp edx, esi
mov dword [ebp - 0xa78], esi
jle 0x406466
mov eax, dword [ebp - 0xa20]
xor esi, esi
test eax, eax
jle 0x406451
mov ebx, dword [ebp - 0xa48]
sub ebx, dword [ebp - 0xa38]
mov dword [ebp - 0xa68], ebx
jmp 0x406396
mov ebx, dword [ebp - 0xa68]
cmp dword [ebp - 0xa30], 0
je 0x4063d4
mov eax, dword [ebp - 0xa24]
mov eax, dword [eax + 0x2be48]
add eax, ecx
shr eax, 1
mov ecx, dword [ebp - 0xaa4]
sub eax, esi
imul eax, edx
add eax, dword [ebp - 0xa78]
lea edx, [esi + ebx]
imul eax, edi
add ecx, eax
mov eax, dword [ebp - 0xa38]
movzx edx, byte [edx + eax]
jmp 0x406410
cmp dword [ebp - 0xa50], 0
je 0x406442
mov eax, dword [ebp - 0xa24]
mov ebx, dword [eax + 0x2be48]
lea eax, [ebx + ecx]
shr eax, 1
mov ecx, dword [ebp - 0xaa4]
sub eax, ebx
add eax, esi
imul eax, edx
add eax, dword [ebp - 0xa78]
mov edx, dword [ebp - 0xa38]
movzx edx, byte [esi + edx]
imul eax, edi
add ecx, eax
movzx eax, byte [ecx]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx], dl
cmp edi, 1
jbe 0x406436
lea eax, [edi - 1]
push eax
push edx
inc ecx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xa80]
mov edx, dword [ebp - 0xa84]
mov eax, dword [ebp - 0xa20]
inc esi
cmp esi, eax
jl 0x406390
mov esi, dword [ebp - 0xa78]
inc esi
cmp esi, edx
mov dword [ebp - 0xa78], esi
jl 0x40636f
mov ecx, dword [ebp - 0xa70]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [ebp - 0xa6c]
mov ebx, dword [ebp - 0xa48]
add esp, 4
mov eax, dword [ebp - 0xa3c]
mov edi, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x406498
push eax
call edi
add esp, 4
cmp dword [ebp - 0xa4c], 0
je 0x4064ad
mov edx, dword [ebp - 0xa4c]
push edx
call edi
add esp, 4
cmp dword [ebp - 0xa60], 0
je 0x4064c2
mov eax, dword [ebp - 0xa60]
push eax
call edi
add esp, 4
cmp dword [ebp - 0xa38], 0
je 0x4064d7
mov ecx, dword [ebp - 0xa38]
push ecx
call edi
add esp, 4
test ebx, ebx
je 0x4064e1
push ebx
call edi
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov edx, dword [ebp - 0xa54]
mov esi, dword [ebp - 0xa24]
mov eax, dword [esi + edx*4 + 0x2ba74]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
test byte [esi + 0x2be5c], 1
je 0x406607
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0xa16]
push ecx
mov word [ebp - 0xa18], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x400
lea edx, [ebp - 0x818]
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, esi
fld dword [eax + 0x2be4c]
add esp, 0xc
fld1
mov dword [ebp - 0xa30], 0
fdivrp st(1)
lea esi, [ebp - 0xa18]
mov edi, 0x100
mov ebx, 1
fstp qword [ebp - 0xaa8]
fild dword [ebp - 0xa30]
fld qword [ebp - 0xaa8]
call sub.MSVCR90.dll__CIpow
fmul qword [0x451730]
add dword [ebp - 0xa30], ebx
fnstcw word [ebp - 0xa3e]
movzx eax, word [ebp - 0xa3e]
or eax, 0xc00
mov dword [ebp - 0xa50], eax
add esi, 2
sub edi, ebx
fldcw word [ebp - 0xa50]
fistp dword [ebp - 0xa50]
mov ax, word [ebp - 0xa50]
mov word [esi - 2], ax
mov word [esi + 0x1fe], ax
mov cx, word [esi - 2]
fldcw word [ebp - 0xa3e]
mov word [esi + 0x3fe], cx
jne 0x406573
mov edx, dword [ebp - 0xa24]
mov eax, dword [edx + 0x2b820]
mov ecx, dword [eax]
lea edx, [ebp - 0xa18]
push edx
push edi
push edi
push eax
mov eax, dword [ecx + 0x54]
call eax
jmp 0x406607
mov dword [ebp - 0xab4], 0x80004005
mov eax, dword [ebp - 0xa54]
inc eax
cmp eax, dword [ebp - 0xa64]
mov dword [ebp - 0xa54], eax
jl 0x404a50
mov eax, dword [ebp - 0xab4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.0044d16e
mov esp, ebp
pop ebp
ret