Function at 0x403d3d
Capabilities:
Get file size

Disassembly:
mov eax, 0x41ffe4
call fcn.00412bcc
sub esp, 0x50
push ebx
push ebp
mov ebx, ecx
push esi
test dword [ebx], 0x1000000
push edi
mov edi, dword [esp + 0x74]
je 0x403f6c
call fcn.00404576
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor ebp, ebp
cmp eax, 3
jae 0x403d7b
push str.Global533
push ebp
push ebp
call esi
xor eax, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], ax
mov dword [esp + 0x68], ebp
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00404594
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040701a
add esp, 0x14
mov byte [esp + 0x68], 3
push ebp
push 1
lea ecx, [esp + 0x50]
call fcn.00401afa
mov byte [esp + 0x68], 4
push ebp
push 1
lea ecx, [esp + 0x20]
call fcn.00401afa
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.004075b2
pop ecx
pop ecx
test al, al
je 0x403f5b
call fcn.00404576
cmp eax, 3
jae 0x403e0b
push str.Global55
push ebp
push ebp
call esi
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.00404c3d
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push esi
call dword [eax]
mov ebp, eax
xor esi, esi
mov eax, esi
cmp ebp, 0xffffffff
je 0x403f28
lea eax, [ebx + 0x58]
push eax
push 1
mov ecx, ebx
call fcn.00404c3d
push esi
push esi
push esi
push 2
push esi
push ebp
call dword [eax]
mov esi, eax
mov dword [esp + 0x74], esi
cmp esi, 0xffffffff
je 0x403f2f
call fcn.00404576
cmp eax, 3
jae 0x403e8d
push str.651651
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x403e8d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0xfc]
push eax
push 1
mov ecx, ebx
call fcn.00404c3d
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push esi
call dword [eax]
push 0
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x164
mov esi, eax
call fcn.00411aca
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x68], 5
test eax, eax
je 0x403edb
push 0
push esi
push ebx
mov ecx, eax
call fcn.00404d72
mov esi, eax
jmp 0x403edd
xor esi, esi
mov byte [esp + 0x68], 4
test byte [esi], 0x80
jne 0x403efd
cmp dword [esi + 4], 0
je 0x403efd
mov ecx, esi
call fcn.00404e2c
push esi
call fcn.00411b19
pop ecx
jmp 0x403f19
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov ecx, 0x42facc
call fcn.00401648
mov dword [eax], esi
test ebx, ebx
je 0x403f24
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
je 0x403f3b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403f59
or dword [esp + 0x68], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00401afa
mov eax, esi
jmp 0x403f7b
xor ebp, ebp
or dword [esp + 0x68], 0xffffffff
push ebp
push 1
lea ecx, [esp + 0x38]
call fcn.00401afa
cmp dword [edi + 0x14], 0x10
jb 0x403f74
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