Function at 0x4237e0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
cmp esi, 0xffffffff
jne 0x423814
push 6
call sub.KERNEL32.dll_SetLastError
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
mov dword [ebx + 0x3e8], eax
cmp eax, 0xffffffff
je 0x42380a
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov dword [ebx + 8], eax
test eax, eax
je 0x42380a
push 0
push 0
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFileEx
mov edx, eax
mov dword [ebx + 0xc], edx
test edx, edx
je 0x42380a
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x423ed7
mov ecx, dword [edx + 0x3c]
mov esi, dword [ebx + 0x3e8]
mov dword [ebx + 0x3dc], ecx
mov dword [ebx + 0x3d0], 0
mov eax, dword [edx + 0x3c]
add eax, 7
mov dword [ebp + 8], ecx
and eax, 0xfffffff8
mov dword [ebx + 0x3d4], eax
cmp ecx, esi
ja 0x423ed7
lea eax, [ecx + 0xf8]
cmp eax, esi
ja 0x423ed7
movups xmm0, xmmword [edx]
push edi
lea esi, [ecx + edx]
mov ecx, 0x3e
movups xmmword [ebx + 0x18], xmm0
lea edi, [ebx + 0x58]
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ebx + 0x28], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [ebx + 0x38], xmm0
movups xmm0, xmmword [edx + 0x30]
movups xmmword [ebx + 0x48], xmm0
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x58], 0x4550
je 0x4238f1
push 0xbf
call sub.KERNEL32.dll_SetLastError
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [ebx + 0x6c]
test ax, ax
je 0x423ec2
mov ecx, dword [ebp + 8]
add ecx, 0x18
add ecx, eax
movzx eax, word [ebx + 0x5e]
mov dword [ebx + 0x3e0], ecx
cmp eax, 0x10
ja 0x423ec2
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [ecx + edx]
push eax
lea eax, [ebx + 0x150]
push eax
call fcn.00464c30
movzx eax, word [ebx + 0x5e]
xor edi, edi
xor ecx, ecx
mov dword [ebp + 8], edi
add esp, 0xc
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp cx, ax
jae 0x4239e5
lea esi, [ebx + 0x164]
mov edi, eax
mov ecx, str..detour
lea eax, [esi - 0x14]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x423980
test dl, dl
je 0x42397c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x423980
add eax, 2
add ecx, 2
test dl, dl
jne 0x423960
xor eax, eax
jmp 0x423985
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4239d6
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi]
add eax, ecx
movups xmm2, xmmword [eax + 0x20]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
psrldq xmm2, 0xc
movups xmmword [ebp - 0x70], xmm0
movups xmm0, xmmword [eax + 0x30]
movd edx, xmm2
movups xmmword [ebp - 0x40], xmm0
movd dword [ebp + 8], xmm1
test edx, edx
je 0x4239c8
lea eax, [ecx + 0x40]
mov dword [ebx + 0x3d4], edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [esi - 8]
mov edx, dword [esi - 4]
add edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
add esi, 0x28
sub edi, 1
jne 0x423955
mov edi, dword [ebp + 8]
push dword [ebx + 0xd8]
mov ecx, ebx
call fcn.00423fb0
mov esi, eax
mov ecx, ebx
push edi
mov dword [ebp - 0x24], esi
call fcn.00423fb0
mov edi, eax
test edi, edi
cmove edi, esi
mov dword [ebp - 4], edi
test esi, esi
je 0x423ec2
test edi, edi
je 0x423ec2
xor ecx, ecx
mov eax, esi
nop dword [eax]
cmp dword [eax], 0
jne 0x423a2b
cmp dword [eax + 0x10], 0
je 0x423a31
inc ecx
add eax, 0x14
jmp 0x423a20
mov dword [ebp - 0x28], ecx
lea eax, [ebx + 0x400]
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [ebp - 0x20], 0
test ecx, ecx
je 0x423cf6
push dword [esi + 0xc]
mov ecx, ebx
call fcn.00423fb0
mov dword [ebp + 8], eax
test eax, eax
je 0x423ec2
push 0x24
call fcn.00449148
mov edi, eax
add esp, 4
test edi, edi
je 0x423d67
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [eax], edi
inc dword [ebx + 0x404]
mov dword [ebp - 0x10], edi
call fcn.00422f90
add esp, 4
mov dword [edi + 0x20], eax
test eax, eax
je 0x4238e6
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x18], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 4], 0
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x423b23
cmp eax, dword [ebp - 0x18]
jae 0x423b23
mov dword [edi + 0x1c], 0
mov dword [edi + 4], 1
jmp 0x423ce0
mov eax, dword [ebp - 4]
mov ecx, ebx
push dword [eax + 0xc]
call fcn.00423fb0
test eax, eax
je 0x423ec2
push eax
call fcn.00422f90
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
je 0x4238e6
mov eax, dword [esi]
test eax, eax
jne 0x423b55
mov eax, dword [esi + 0x10]
push eax
mov ecx, ebx
call fcn.00423fb0
mov ecx, dword [ebp - 4]
mov esi, eax
mov dword [ebp - 0xc], esi
mov eax, dword [ecx]
test eax, eax
jne 0x423b6e
mov eax, dword [ecx + 0x10]
push eax
mov ecx, ebx
call fcn.00423fb0
xor ebx, ebx
mov dword [ebp + 8], eax
test esi, esi
je 0x423cd6
cmp dword [esi], ebx
je 0x423cd6
nop dword [eax + eax]
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x423b90
test ebx, ebx
je 0x423cd6
xor ecx, ecx
mov dword [edi + 0xc], ebx
mov eax, ebx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00449901
add esp, 4
test eax, eax
je 0x423d60
lea esi, [eax + 4]
mov dword [eax], ebx
mov ecx, ebx
mov eax, esi
nop word [eax + eax]
xor edx, edx
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea eax, [eax + 0x14]
mov word [eax - 0x14], dx
mov dword [eax - 4], edx
mov dword [eax - 8], edx
sub ecx, 1
jne 0x423be0
mov dword [edi + 8], esi
test esi, esi
je 0x423d67
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x423cd6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
sub ecx, eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
nop word [eax + eax]
xor edx, edx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi], dx
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], edx
mov eax, dword [ecx + eax]
test eax, eax
jns 0x423c5b
movzx eax, ax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp 0x423cbb
push eax
mov ecx, edi
call fcn.00423fb0
test eax, eax
je 0x423c84
mov cx, word [eax]
add eax, 2
push eax
mov word [esi], cx
call fcn.00422f90
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x4238e6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jns 0x423c98
movzx eax, ax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp 0x423cbb
push eax
mov ecx, edi
call fcn.00423fb0
test eax, eax
je 0x423cbb
add eax, 2
push eax
call fcn.00422f90
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x4238e6
mov eax, dword [ebp + 8]
add esi, 0x14
inc dword [ebp - 8]
add eax, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], eax
cmp dword [ebp - 8], ebx
jb 0x423c30
add dword [ebp - 4], 0x14
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
add esi, 0x14
inc edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
cmp edi, dword [ebp - 0x28]
jb 0x423a52
movzx eax, word [ebx + 0x5e]
xor ecx, ecx
mov dword [ebx + 0x3e4], 0
mov dword [ebp - 0x28], 0
cmp cx, ax
jae 0x423e75
lea esi, [ebx + 0x164]
mov dword [ebp - 0xc], eax
xor edi, edi
mov dword [ebp + 8], esi
mov eax, dword [esi]
mov ecx, str..detour
add eax, dword [esi - 4]
cmp eax, edi
cmova edi, eax
lea eax, [esi - 0x14]
mov dword [ebx + 0x3e4], edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x423d79
test dl, dl
je 0x423d5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x423d79
add eax, 2
add ecx, 2
test dl, dl
jne 0x423d40
xor eax, eax
jmp 0x423d7e
mov dword [edi + 8], 0
push 0xe
call sub.KERNEL32.dll_SetLastError
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x423e5a
mov esi, dword [esi]
mov edx, dword [ebx + 0xc]
add edx, esi
movups xmm1, xmmword [edx]
movups xmm0, xmmword [edx + 0x30]
movups xmm2, xmmword [edx + 0x10]
movups xmm3, xmmword [edx + 0x20]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movaps xmm0, xmm2
movups xmmword [ebp - 0x70], xmm1
test ecx, ecx
psrldq xmm0, 4
cmove ecx, eax
mov eax, dword [ebp - 0x64]
sub eax, ecx
mov dword [ebp - 0x30], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, esi
movd dword [ebx + 0xdc], xmm0
mov esi, dword [ebp + 8]
cmp eax, edi
movaps xmm0, xmm2
movd dword [ebx + 0xd8], xmm2
psrldq xmm0, 8
cmova edi, eax
mov eax, dword [ebp - 0xc]
movd dword [ebx + 0x128], xmm0
add eax, 0xffff
movaps xmm0, xmm3
movd dword [ebx + 0x130], xmm3
psrldq xmm2, 0xc
psrldq xmm0, 4
psrldq xmm3, 8
mov dword [ebx + 0x3e4], edi
mov dword [ebp - 0xc], eax
mov word [ebx + 0x5e], ax
movd dword [ebx + 0x12c], xmm2
movd dword [ebx + 0x134], xmm0
mov dword [ebx + 0xb0], 0
movd dword [ebx + 0xa8], xmm3
mov dword [ebx + 0x408], 1
mov edx, dword [ebp - 0x28]
add esi, 0x28
mov eax, dword [ebp - 0xc]
inc edx
movzx eax, ax
mov dword [ebp - 0x28], edx
mov dword [ebp + 8], esi
cmp edx, eax
jb 0x423d24
push 0xc
call fcn.00449148
add esp, 4
test eax, eax
je 0x423ea6
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
pop edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [ebx + 4], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xe
mov dword [ebx + 4], 0
call sub.KERNEL32.dll_SetLastError
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0
call sub.KERNEL32.dll_SetLastError
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc1
call sub.KERNEL32.dll_SetLastError
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4