Function at 0x1007c040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bb3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x58], edi
jne 0x1007c0b2
cmp dword [eax + 0x2c], 0
je 0x1007c093
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018d760
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edx + 0x14], 0
je 0x1007c08b
cmp esi, 0x80000000
jae 0x1007c08b
test esi, esi
je 0x1007c08b
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c08b
mov eax, 0x5a4d
cmp ax, word [esi]
jne 0x1007c08b
mov esi, dword [esi + 0x3c]
add esi, dword [ebp - 0x54]
push 0xf8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c08b
cmp dword [esi], 0x4550
jne 0x1007c08b
mov eax, dword [esi + 0x80]
test eax, eax
je 0x1007c093
mov edx, dword [ebp - 0x54]
add eax, edx
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1007c382
mov edi, dword [ebp - 0x4c]
add edi, 4
mov dword [ebp - 0x60], edi
nop
add eax, edx
mov dword [ebp - 0x70], 0
mov edx, 0x10010b20
mov dword [ebp - 0x6c], 0xf
cmovne edx, eax
mov byte [ebp - 0x80], 0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007c141
sub eax, esi
lea ecx, [ebp - 0x80]
push eax
push edx
call fcn.1004a870
mov dword [ebp - 0x84], 0x10010c38
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.10040730
mov dword [ebp - 0x48], 0x10010c38
cmp dword [ebp - 0x6c], 0x10
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x70]
cmovae ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], ecx
cmp edi, 0x10
jae 0x1007c1b0
movups xmm0, xmmword [ecx]
mov esi, 0xf
movups xmmword [ebp - 0x28], xmm0
jmp 0x1007c1e2
mov esi, edi
lea ecx, [ebp - 0x28]
or esi, 0xf
mov eax, accept
cmp esi, 0x7fffffff
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.1004a370
lea ecx, [edi + 1]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x4c]
push eax
call fcn.101a3c10
add esp, 0xc
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], 0x10010c38
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
test edx, edx
je 0x1007c216
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push edx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1007c235
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp esi, 0x10
mov dword [ebp - 0x4c], eax
push edi
cmovae ecx, eax
cmp dword [ebp - 0x30], 0x10
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push edx
push eax
call fcn.1004d260
add esp, 0x10
mov dword [ebp - 0x2c], 0x10010c38
mov edi, eax
cmp esi, 0x10
jb 0x1007c299
mov ecx, dword [ebp - 0x4c]
inc esi
mov eax, ecx
mov byte [ebp - 4], 3
cmp esi, 0x1000
jb 0x1007c28f
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c393
push esi
push ecx
call fcn.1018d246
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x48], 0x10010c38
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x1007c2cb
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.1004aa90
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x1007c316
mov edx, dword [ebp - 0x5c]
lea ecx, [eax + 1]
mov eax, edx
mov dword [ebp - 4], 5
cmp ecx, 0x1000
jb 0x1007c305
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c393
push ecx
push edx
call fcn.1018d246
add esp, 8
mov dword [ebp - 4], 0xffffffff
test edi, edi
mov edi, dword [ebp - 0x58]
jne 0x1007c367
cmp dword [edi + 4], 0x15555555
mov esi, dword [edi]
je 0x1007c398
mov dword [ebp - 0x68], edi
push 0xc
mov dword [ebp - 4], 6
mov dword [ebp - 0x64], 0
call fcn.1018d216
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x64], 0
mov dword [eax + 8], ecx
inc dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x14
mov dword [ebp - 0x50], ecx
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1007c382
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x60]
jmp 0x1007c120
cmp dword [edi + 4], 0
je 0x1007c093
mov al, 1
jmp 0x1007c095
call fcn.100be3b4
push 0x1001100c
call fcn.1018e82a
int3