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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
lea edi, [ebp - 0x60]
mov dword [ebp - 0x4c], edx
stosd dword es:[edi], eax
xor edx, edx
push ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x14], edx
mov dword [esi], edx
stosd dword es:[edi], eax
or dword [ebp - 0x60], 0xffffffff
mov edi, edx
push ecx
lea edx, [ebp - 0x80]
call fcn.646109cf
mov ebx, eax
test ebx, ebx
jne 0x646117e4
or dword [esi], 4
jmp 0x64611c96
mov edx, dword [ebx + 0x224]
xor eax, eax
inc eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x64611c55
mov ecx, dword [ebx + 8]
movzx eax, word [ecx + edx]
inc edi
mov dword [ebp - 0x48], edi
lea edi, [edx + 2]
xor edx, edx
mov dword [ebp - 0x10], eax
add edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], edx
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
test eax, eax
je 0x64611c4a
mov edx, eax
movzx eax, word [edi]
sub eax, 0x100
je 0x646118a6
sub eax, 3
je 0x646118a1
sub eax, 0x14
je 0x6461187e
sub eax, 3
je 0x64611879
sub eax, 1
je 0x64611856
sub eax, 9
jne 0x646118bb
lea eax, [ebp - 0x50]
jmp 0x646118a9
lea eax, [ebp - 0xc]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.646106a6
test eax, eax
je 0x64611899
cmp dword [ebp - 0x48], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
jne 0x646118be
mov dword [ebp - 0x40], ecx
jmp 0x646118be
lea eax, [ebp - 0x3c]
jmp 0x646118a9
lea eax, [ebp - 0x34]
xor edx, edx
push eax
push edi
mov ecx, ebx
call fcn.646106a6
test eax, eax
je 0x64611899
cmp dword [ebp - 0x34], 0x155cc0
jbe 0x646118b8
or dword [esi], 4
jmp 0x64611c5a
lea eax, [ebp - 0x1c]
jmp 0x646118a9
lea eax, [ebp - 0x28]
push eax
push edi
xor edx, edx
mov ecx, ebx
call fcn.646106a6
test eax, eax
je 0x64611899
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
add edi, 0xc
inc eax
mov dword [ebp - 0x38], eax
cmp eax, edx
jb 0x6461182e
cmp dword [ebp - 0x1c], 1
jne 0x646118de
or dword [esi], 2
mov edi, dword [ebp - 0x2c]
jmp 0x646118fb
cmp dword [ebp - 0x1c], 4
jne 0x64611c4a
cmp dword [ebp - 0x28], 0x6c0
jne 0x64611c4a
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x3c], 0xcc
ja 0x6461191a
cmp ecx, 0xc8
ja 0x6461191a
cmp dword [ebp - 0x28], 0x6c0
ja 0x6461191a
cmp dword [ebp - 0x40], ecx
je 0x64611929
or dword [esi], 2
xor edi, edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebx + 8]
imul eax, edx, 0xc
mov edx, dword [ebp - 0x44]
add eax, ecx
mov edx, dword [eax + edx + 2]
mov dword [ebp - 0x44], edx
test edx, edx
je 0x64611947
mov edi, dword [ebp - 0x48]
jmp 0x646117fe
test edi, edi
jne 0x64611c52
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x64611c5a
mov ecx, dword [ebx + 0x5f0]
mov eax, 0x6c0
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
ja 0x64611971
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test cl, 7
mov eax, ecx
push 0
pop edx
setne dl
shr eax, 3
add edx, eax
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x44], edx
je 0x646119b5
mov edx, ecx
lea eax, [ebp - 0x4c]
imul edx, dword [ebp - 0x7c]
mov ecx, dword [ebx + 0x330]
push eax
add edx, 0x106
call fcn.64610616
test eax, eax
js 0x64611c4a
mov eax, dword [ebp - 0x4c]
add eax, 8
jmp 0x646119bf
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.6461017f
test eax, eax
je 0x646119ec
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x7c]
mov edx, edi
push eax
call fcn.64610616
test eax, eax
jns 0x64611a08
mov dword [esi], 4
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x60], 0xffffffff
je 0x64611c5a
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.6461023b
jmp 0x64611c5a
push 4
push 0x1000
push dword [ebp - 0x48]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x646119ef
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 - 0x24], eax
test eax, eax
je 0x646119ef
mov eax, dword [ebp - 0x58]
mov ecx, 0x4949
push 0x2a
mov word [eax], cx
pop ecx
push 8
mov dword [eax + 4], esi
pop esi
mov word [eax + 2], cx
add eax, 8
push ecx
mov dword [ebp - 0x1c], eax
add eax, 0xfffffffc
push ecx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x40], eax
call fcn.6461080a
mov dword [ebp - 0x20], eax
test eax, eax
je 0x646119ef
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x78], eax
jbe 0x64611c3e
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
inc eax
mov ecx, ebx
push 1
mov edx, eax
mov dword [ebp - 0x38], eax
call fcn.64610e70
test eax, eax
je 0x646119ec
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov edx, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0xfffff940
add eax, 0x6c0
push eax
push dword [ebp - 0x48]
call fcn.64610e15
test eax, eax
je 0x646119ec
cmp dword [ebp - 0x14], 0
je 0x64611ae9
mov esi, dword [ebx + 0x5f4]
imul esi, dword [ebp - 0x44]
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
jmp 0x64611b4d
mov ecx, dword [ebp - 0x20]
mov edx, edi
mov eax, dword [ebp - 0x24]
and dword [ecx + 0x600], 0
mov dword [ecx + 0x608], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x604], 0x20
mov dword [ecx + 0x650], eax
mov eax, dword [ebx + 0x5f4]
mov dword [ebp - 0x4c], eax
call fcn.64613739
test eax, eax
je 0x64611b49
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, esi
push eax
push dword [ebp - 0x4c]
push edi
call fcn.646138cf
test eax, eax
je 0x64611b43
mov ecx, esi
call fcn.646137a9
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call sub.msvcrt.dll_memcpy
add dword [ebp - 8], esi
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
add edx, esi
mov eax, edx
mov edi, edx
sub eax, dword [ebp - 0x58]
mov esi, 0x64603cc8
push 0x41
mov dword [ecx], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
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 - 0x2c]
mov dword [edx + 0xde], eax
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0xc]
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 - 0x14]
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 - 0x14]
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
mov dword [edx + 0xa6], eax
lea eax, [edx + 0xce]
mov dword [ebp - 0x40], eax
mov eax, 0x106
add dword [ebp - 8], eax
add edx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x78]
jb 0x64611a8f
mov esi, dword [ebp - 8]
mov dword [ebp - 0x30], 1
jmp 0x646119ef
mov dword [esi], 4
jmp 0x64611c5a
xor eax, eax
inc eax
or dword [esi], eax
mov dword [ebp - 0x30], eax
mov ecx, ebx
call fcn.64610dab
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x64611c6f
mov ecx, eax
call fcn.64610dab
mov eax, dword [ebp - 0x18]
mov esi, 0x8000
test eax, eax
je 0x64611c85
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x64611c96
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
leave
ret 4