Function at 0x64610f02
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.646101bf
mov ebx, eax
test ebx, ebx
jne 0x64610f59
or dword [esi], 4
jmp 0x6461143b
mov edx, dword [ebx + 0x224]
xor eax, eax
inc eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], eax
test edx, edx
je 0x646113fa
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 0x646113ef
mov edx, eax
movzx eax, word [edi]
sub eax, 0x100
je 0x6461101b
sub eax, 3
je 0x64611016
sub eax, 0x14
je 0x64610ff3
sub eax, 3
je 0x64610fee
sub eax, 1
je 0x64610fcb
sub eax, 9
jne 0x64611030
lea eax, [ebp - 0x6c]
jmp 0x6461101e
lea eax, [ebp - 0xc]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.6460fef9
test eax, eax
je 0x6461100e
cmp dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
jne 0x64611033
mov dword [ebp - 0x14], ecx
jmp 0x64611033
lea eax, [ebp - 0x4c]
jmp 0x6461101e
lea eax, [ebp - 0x48]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.6460fef9
test eax, eax
je 0x6461100e
cmp dword [ebp - 0x48], 0x155cc0
jbe 0x6461102d
or dword [esi], 4
jmp 0x646113ff
lea eax, [ebp - 0x3c]
jmp 0x6461101e
lea eax, [ebp - 0x40]
push eax
push edi
xor edx, edx
mov ecx, ebx
call fcn.6460fef9
test eax, eax
je 0x6461100e
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 0x64610fa3
cmp dword [ebp - 0x3c], 1
jne 0x64611053
or dword [esi], 2
mov edi, dword [ebp - 0x10]
jmp 0x64611070
cmp dword [ebp - 0x3c], 4
jne 0x646113ef
cmp dword [ebp - 0x40], 0x6c0
jne 0x646113ef
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x4c], 0xcc
ja 0x6461108f
cmp ecx, 0xc8
ja 0x6461108f
cmp dword [ebp - 0x40], 0x6c0
ja 0x6461108f
cmp dword [ebp - 0x14], ecx
je 0x6461109e
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 0x646110bc
mov edi, dword [ebp - 0x30]
jmp 0x64610f73
test edi, edi
jne 0x646113f7
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x646113ff
mov ecx, dword [ebx + 0x5f0]
mov eax, 0x6c0
mov dword [ebp - 0x20], ecx
cmp ecx, eax
ja 0x646110e6
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 0x6461112d
mov edx, ecx
lea eax, [ebp - 0x24]
imul edx, dword [ebp - 0x88]
mov ecx, dword [ebx + 0x330]
push eax
add edx, 0x106
call fcn.6460fe83
test eax, eax
js 0x646113ef
mov eax, dword [ebp - 0x24]
add eax, 8
jmp 0x64611137
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.6460fa4f
test eax, eax
je 0x646113b9
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x88]
mov edx, edi
push eax
call fcn.6460fe83
test eax, eax
jns 0x64611170
mov dword [esi], 4
jmp 0x646113b9
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 0x646113b9
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 0x646113b9
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.6461004a
mov dword [ebp - 0x34], eax
test eax, eax
je 0x646113b9
mov eax, esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x84], eax
jbe 0x646113b2
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], esi
inc eax
push ecx
mov edx, eax
mov dword [ebp - 0x68], eax
mov ecx, ebx
call fcn.64622c54
test eax, eax
je 0x646113b9
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.646105a7
test eax, eax
je 0x646113b9
cmp dword [ebp - 0x18], 0
je 0x6461125b
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 0x646112bf
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.64612f39
test eax, eax
je 0x646112bb
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.646130a7
test eax, eax
je 0x646112b5
mov ecx, esi
call fcn.64612fa3
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, 0x64602f00
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 dword [edx + 0xde], eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
inc eax
mov esi, dword [ebp - 0x14]
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 0x64611202
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x60], 0xffffffff
je 0x646113ff
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 0x646113e4
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.6460fb05
jmp 0x646113ff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x646113ff
mov dword [esi], 4
jmp 0x646113ff
xor eax, eax
inc eax
or dword [esi], eax
mov dword [ebp - 0x44], eax
mov ecx, ebx
call fcn.64610543
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x64611414
mov ecx, eax
call fcn.64610543
mov eax, dword [ebp - 0x28]
mov esi, 0x8000
test eax, eax
je 0x6461142a
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x6461143b
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