Function at 0x403e10
Capabilities:
Get file size

Disassembly:
mov eax, 0x42016e
call fcn.00412d4c
sub esp, 0x50
push ebx
push ebp
mov ebx, ecx
push esi
test dword [ebx], 0x1000000
push edi
mov edi, dword [esp + 0x74]
je 0x404033
call fcn.00404672
xor esi, esi
cmp eax, 3
jae 0x403e4c
push str.Global542
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, esi
call fcn.00404672
cmp eax, 3
jae 0x403e73
push str.Local175
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x403e73
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], ax
mov dword [esp + 0x68], esi
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00404690
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004071a1
add esp, 0x14
mov byte [esp + 0x68], 3
push esi
push 1
lea ecx, [esp + 0x50]
call fcn.00401bbb
mov byte [esp + 0x68], 4
push esi
push 1
lea ecx, [esp + 0x20]
call fcn.00401bbb
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00407765
pop ecx
pop ecx
test al, al
je 0x404022
cmp dword [esp + 0x44], 8
lea eax, [ebx + 0x60]
push eax
lea esi, [esp + 0x34]
cmovae esi, dword [esp + 0x34]
push 1
mov ecx, ebx
call fcn.0040d9d1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [eax]
mov esi, eax
xor eax, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x403ff3
lea eax, [ebx + 0x58]
push eax
push 1
mov ecx, ebx
call fcn.0040d9d1
xor ecx, ecx
push ecx
push ecx
push ecx
push 2
push ecx
push esi
call dword [eax]
mov dword [esp + 0x74], eax
cmp eax, 0xffffffff
je 0x403ffa
lea eax, [ebx + 0xfc]
push eax
push 1
mov ecx, ebx
call fcn.0040d9d1
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push dword [esp + 0x84]
call dword [eax]
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x164
mov esi, eax
call fcn.00411c4a
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x68], 5
test eax, eax
je 0x403fa6
push 0
push esi
push ebx
mov ecx, eax
call fcn.00404dd9
mov esi, eax
jmp 0x403fa8
xor esi, esi
mov byte [esp + 0x68], 4
test byte [esi], 0x80
jne 0x403fc8
cmp dword [esi + 4], 0
je 0x403fc8
mov ecx, esi
call fcn.00404e98
push esi
call fcn.00411c99
pop ecx
jmp 0x403fe0
mov ebp, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
mov ecx, 0x42fb4c
mov dword [esp + 0x18], ebp
call fcn.00401682
mov dword [eax], esi
test ebx, ebx
je 0x403feb
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x404006
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x404020
or dword [esp + 0x68], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00401bbb
mov eax, ebp
jmp 0x404042
xor esi, esi
or dword [esp + 0x68], 0xffffffff
push esi
push 1
lea ecx, [esp + 0x38]
call fcn.00401bbb
cmp dword [edi + 0x14], 0x10
jb 0x40403b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4