Function at 0x64610f82
Capabilities:
Check for software breakpoints
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
lea edi, [ebp - 0x60]
mov dword [ebp - 0x24], edx
stosd dword es:[edi], eax
lea edx, [ebp - 0x8c]
xor ebx, ebx
push ecx
push ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
or dword [ebp - 0x60], 0xffffffff
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi], ebx
call fcn.6461023f
mov ebx, eax
test ebx, ebx
jne 0x64610fd9
or dword [esi], 4
jmp 0x646114bc
mov edx, dword [ebx + 0x224]
xor eax, eax
inc eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], eax
test edx, edx
je 0x6461147b
mov ecx, dword [ebx + 8]
movzx eax, word [ecx + edx]
inc edi
mov dword [ebp - 0x30], edi
lea edi, [edx + 2]
xor edx, edx
mov dword [ebp - 8], eax
add edi, ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov ecx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], edx
test eax, eax
je 0x64611470
mov edx, eax
movzx eax, word [edi]
sub eax, 0x100
je 0x6461109b
sub eax, 3
je 0x64611096
sub eax, 0x14
je 0x64611073
sub eax, 3
je 0x6461106e
sub eax, 1
je 0x6461104b
sub eax, 9
jne 0x646110b0
lea eax, [ebp - 0x6c]
jmp 0x6461109e
lea eax, [ebp - 0xc]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.6460ff79
test eax, eax
je 0x6461108e
cmp dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
jne 0x646110b3
mov dword [ebp - 0x14], ecx
jmp 0x646110b3
lea eax, [ebp - 0x4c]
jmp 0x6461109e
lea eax, [ebp - 0x48]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.6460ff79
test eax, eax
je 0x6461108e
cmp dword [ebp - 0x48], 0x155cc0
jbe 0x646110ad
or dword [esi], 4
jmp 0x64611480
lea eax, [ebp - 0x3c]
jmp 0x6461109e
lea eax, [ebp - 0x40]
push eax
push edi
xor edx, edx
mov ecx, ebx
call fcn.6460ff79
test eax, eax
je 0x6461108e
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
add edi, 0xc
inc eax
mov dword [ebp - 0x20], eax
cmp eax, edx
jb 0x64611023
cmp dword [ebp - 0x3c], 1
jne 0x646110d3
or dword [esi], 2
mov edi, dword [ebp - 0x10]
jmp 0x646110f0
cmp dword [ebp - 0x3c], 4
jne 0x64611470
cmp dword [ebp - 0x40], 0x6c0
jne 0x64611470
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x4c], 0xcc
ja 0x6461110f
cmp ecx, 0xc8
ja 0x6461110f
cmp dword [ebp - 0x40], 0x6c0
ja 0x6461110f
cmp dword [ebp - 0x14], ecx
je 0x6461111e
or dword [esi], 2
xor edi, edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], edi
mov ecx, dword [ebx + 8]
imul eax, edx, 0xc
mov edx, dword [ebp - 0x2c]
add eax, ecx
mov edx, dword [eax + edx + 2]
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x6461113c
mov edi, dword [ebp - 0x30]
jmp 0x64610ff3
test edi, edi
jne 0x64611478
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x64611480
mov ecx, dword [ebx + 0x5f0]
mov eax, 0x6c0
mov dword [ebp - 0x20], ecx
cmp ecx, eax
ja 0x64611166
mov ecx, eax
mov dword [ebp - 0x20], ecx
test cl, 7
mov eax, ecx
push 0
pop edx
setne dl
shr eax, 3
add edx, eax
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], edx
je 0x646111ad
mov edx, ecx
lea eax, [ebp - 0x24]
imul edx, dword [ebp - 0x88]
mov ecx, dword [ebx + 0x330]
push eax
add edx, 0x106
call fcn.6460ff03
test eax, eax
js 0x64611470
mov eax, dword [ebp - 0x24]
add eax, 8
jmp 0x646111b7
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x60]
xor edx, edx
push ecx
push eax
mov ecx, edi
call fcn.6460facf
test eax, eax
je 0x6461143a
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x88]
mov edx, edi
push eax
call fcn.6460ff03
test eax, eax
jns 0x646111f0
mov dword [esi], 4
jmp 0x6461143a
push 4
push 0x1000
push dword [ebp - 0x30]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6461143a
push 4
push 0x1000
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x6461143a
mov eax, dword [ebp - 0x58]
mov ecx, 0x4949
push 0x2a
mov word [eax], cx
pop ecx
push 8
pop edx
mov word [eax + 2], cx
mov dword [eax + 4], esi
add eax, 8
push ecx
mov dword [ebp - 0x10], eax
add eax, 0xfffffffc
push ecx
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x50], eax
call fcn.646100ca
mov dword [ebp - 0x34], eax
test eax, eax
je 0x6461143a
mov eax, esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x84], eax
jbe 0x64611433
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], esi
inc eax
mov ecx, ebx
push 1
mov edx, eax
mov dword [ebp - 0x68], eax
call fcn.6461067c
test eax, eax
je 0x6461143a
mov eax, dword [ebp - 0x18]
mov ecx, ebx
mov edx, dword [ebp - 0x28]
neg eax
sbb eax, eax
and eax, 0xfffff940
add eax, 0x6c0
push eax
push dword [ebp - 0x30]
call fcn.64610627
test eax, eax
je 0x6461143a
cmp dword [ebp - 0x18], 0
je 0x646112dc
mov esi, dword [ebx + 0x5f4]
imul esi, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
jmp 0x64611340
mov ecx, dword [ebp - 0x34]
mov edx, edi
mov eax, dword [ebp - 0x38]
and dword [ecx + 0x600], 0
mov dword [ecx + 0x608], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x604], 0x20
mov dword [ecx + 0x650], eax
mov eax, dword [ebx + 0x5f4]
mov dword [ebp - 0x64], eax
call fcn.64612fbc
test eax, eax
je 0x6461133c
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x28]
mov ecx, esi
push eax
push dword [ebp - 0x64]
push edi
call fcn.6461312a
test eax, eax
je 0x64611336
mov ecx, esi
call fcn.64613026
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], esi
push esi
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call sub.msvcrt.dll_memcpy
add dword [ebp - 0x1c], esi
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x50]
add edx, esi
mov eax, edx
mov edi, edx
sub eax, dword [ebp - 0x58]
mov esi, 0x64602f10
push 0x41
mov dword [ecx], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 0x64c]
mov dword [edx + 0xd6], eax
mov eax, dword [ebx + 0x648]
mov edi, dword [ebp - 0x20]
mov dword [edx + 0xde], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
inc eax
movzx eax, ax
mov dword [edx + 0xbe], eax
mov dword [edx + 0x16], edi
mov eax, dword [ebx + 0x5f4]
mov dword [edx + 0x22], eax
mov eax, dword [ebx + 0x5f4]
mov dword [edx + 0x76], eax
mov eax, ecx
sub eax, esi
mov dword [edx + 0x82], esi
mov dword [edx + 0x5e], eax
lea eax, [ecx + 0xd6]
mov dword [edx + 0x8e], eax
lea eax, [ecx + 0xde]
mov dword [edx + 0x9a], eax
lea eax, [ecx + 0xe6]
mov dword [edx + 0xca], eax
mov eax, dword [ebp - 0x18]
neg eax
mov dword [edx + 0x52], 1
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [edx + 0x3a], eax
mov eax, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
mov dword [edx + 0xa6], eax
lea eax, [edx + 0xce]
mov dword [ebp - 0x50], eax
mov eax, 0x106
add ecx, eax
add edx, eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x84]
jb 0x64611282
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x60], 0xffffffff
je 0x64611480
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x64611465
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.6460fb85
jmp 0x64611480
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x64611480
mov dword [esi], 4
jmp 0x64611480
xor eax, eax
inc eax
or dword [esi], eax
mov dword [ebp - 0x44], eax
mov ecx, ebx
call fcn.646105c3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x64611495
mov ecx, eax
call fcn.646105c3
mov eax, dword [ebp - 0x28]
mov esi, 0x8000
test eax, eax
je 0x646114ab
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x646114bc
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret 4