Function at 0x6461103e
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.646102fa
mov ebx, eax
test ebx, ebx
jne 0x64611095
or dword [esi], 4
jmp 0x64611577
mov edx, dword [ebx + 0x224]
xor eax, eax
inc eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], eax
test edx, edx
je 0x64611536
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 0x6461152b
mov edx, eax
movzx eax, word [edi]
sub eax, 0x100
je 0x64611157
sub eax, 3
je 0x64611152
sub eax, 0x14
je 0x6461112f
sub eax, 3
je 0x6461112a
sub eax, 1
je 0x64611107
sub eax, 9
jne 0x6461116c
lea eax, [ebp - 0x6c]
jmp 0x6461115a
lea eax, [ebp - 0xc]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.6461001a
test eax, eax
je 0x6461114a
cmp dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
jne 0x6461116f
mov dword [ebp - 0x14], ecx
jmp 0x6461116f
lea eax, [ebp - 0x4c]
jmp 0x6461115a
lea eax, [ebp - 0x48]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.6461001a
test eax, eax
je 0x6461114a
cmp dword [ebp - 0x48], 0x155cc0
jbe 0x64611169
or dword [esi], 4
jmp 0x6461153b
lea eax, [ebp - 0x3c]
jmp 0x6461115a
lea eax, [ebp - 0x40]
push eax
push edi
xor edx, edx
mov ecx, ebx
call fcn.6461001a
test eax, eax
je 0x6461114a
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 0x646110df
cmp dword [ebp - 0x3c], 1
jne 0x6461118f
or dword [esi], 2
mov edi, dword [ebp - 0x10]
jmp 0x646111ac
cmp dword [ebp - 0x3c], 4
jne 0x6461152b
cmp dword [ebp - 0x40], 0x6c0
jne 0x6461152b
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x4c], 0xcc
ja 0x646111cb
cmp ecx, 0xc8
ja 0x646111cb
cmp dword [ebp - 0x40], 0x6c0
ja 0x646111cb
cmp dword [ebp - 0x14], ecx
je 0x646111da
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 0x646111f8
mov edi, dword [ebp - 0x30]
jmp 0x646110af
test edi, edi
jne 0x64611533
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x6461153b
mov ecx, dword [ebx + 0x5f0]
mov eax, 0x6c0
mov dword [ebp - 0x20], ecx
cmp ecx, eax
ja 0x64611222
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 0x64611269
mov edx, ecx
lea eax, [ebp - 0x24]
imul edx, dword [ebp - 0x88]
mov ecx, dword [ebx + 0x330]
push eax
add edx, 0x106
call fcn.6460ff8f
test eax, eax
js 0x6461152b
mov eax, dword [ebp - 0x24]
add eax, 8
jmp 0x64611273
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.6460fb59
test eax, eax
je 0x646114f5
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x88]
mov edx, edi
push eax
call fcn.6460ff8f
test eax, eax
jns 0x646112ac
mov dword [esi], 4
jmp 0x646114f5
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 0x646114f5
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 0x646114f5
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.6461016d
mov dword [ebp - 0x34], eax
test eax, eax
je 0x646114f5
mov eax, esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x84], eax
jbe 0x646114ee
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.64610739
test eax, eax
je 0x646114f5
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.646106e4
test eax, eax
je 0x646114f5
cmp dword [ebp - 0x18], 0
je 0x64611397
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 0x646113fb
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.64613085
test eax, eax
je 0x646113f7
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.64613216
test eax, eax
je 0x646113f1
mov ecx, esi
call fcn.646130ef
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, 0x64602ef0
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 0x6461133e
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x60], 0xffffffff
je 0x6461153b
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 0x64611520
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.6460fc0f
jmp 0x6461153b
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6461153b
mov dword [esi], 4
jmp 0x6461153b
xor eax, eax
inc eax
or dword [esi], eax
mov dword [ebp - 0x44], eax
mov ecx, ebx
call fcn.64610680
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x64611550
mov ecx, eax
call fcn.64610680
mov eax, dword [ebp - 0x28]
mov esi, 0x8000
test eax, eax
je 0x64611566
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x64611577
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4