Function at 0x403b93
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ebp + 0x1c]
lea edi, [ebp - 0x144]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x18]
movsd dword es:[edi], dword [esi]
push 0x103
mov dword [ebp - 0x298], eax
xor esi, esi
lea eax, [ebp - 0x133]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x134], 0
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x284]
add esp, 0xc
cmp ecx, esi
je 0x403c1e
lea edi, [ebp - 0x134]
call fcn.0040567f
xor eax, eax
push 8
add ebx, 0x44
pop ecx
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov edi, 0x12c
cdq
mov ecx, edi
idiv ecx
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x27c], esi
test eax, eax
je 0x403cc3
and dword [ebp - 0x278], esi
mov eax, dword [ebx]
add eax, dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x403c87
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov ecx, edi
cdq
idiv ecx
add dword [ebp - 0x278], edi
inc esi
cmp esi, eax
jb 0x403c54
jmp 0x403cc3
mov eax, dword [ebx]
mov edi, esi
imul edi, edi, 0x12c
push 0x20
lea eax, [edi + eax + 0x104]
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
mov eax, dword [ebx]
mov eax, dword [edi + eax + 0x128]
add esp, 0x10
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x28c], 1
mov eax, dword [ebp - 0x280]
and dword [eax], 0
mov eax, dword [ebp - 0x29c]
and dword [eax], 0
mov ecx, dword [ebp - 0x288]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 0x298]
push 2
pop eax
mov word [ecx], ax
mov eax, dword [ebp - 0x294]
mov edi, dword [eax + 4]
mov dword [ebp - 0x278], edi
cmp edi, dword [eax + 8]
je 0x403f6f
lea esi, [edi + 0x1c]
movzx ecx, word [esi - 0x16]
xor eax, eax
cmp ax, cx
je 0x403f16
lea eax, [esi - 0x10]
movzx edx, word [eax - 4]
mov dword [ebp - 0x290], edx
test cl, 1
je 0x403d43
push 0x10
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.MSVCR100.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x403f16
test byte [esi - 0x16], 2
je 0x403e08
push 0x103
lea eax, [ebp - 0x24b]
push 0
push eax
mov byte [ebp - 0x24c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
je 0x403d81
lea edi, [ebp - 0x24c]
mov ecx, esi
call fcn.0040567f
mov edi, dword [ebp - 0x278]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x403e08
push 0x10
lea edi, [esi - 0x10]
lea eax, [ebp - 0x144]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x403f10
push 0x40b8c4
push esi
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x403dd7
cmp dword [edi + 0x13c], eax
je 0x403f36
mov eax, dword [ebp - 0x29c]
push esi
push 0x104
push dword [ebp - 0x284]
mov dword [eax], 1
mov dword [ebp - 0x290], 4
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov edi, dword [ebp - 0x278]
add esp, 0xc
test byte [esi - 0x16], 8
je 0x403ea2
cmp dword [ebp - 0x28c], 0
jne 0x403e8b
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x274]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
lea eax, [ebp - 0x170]
add esp, 0xc
push eax
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x134]
call fcn.00401de9
pop ecx
test al, al
je 0x403ea2
lea eax, [ebp - 0x274]
call fcn.004058dc
lea eax, [ebp - 0x170]
push eax
lea eax, [esi + 0x108]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x403f16
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x27c], eax
jmp 0x403ea2
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x108]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x403f16
test byte [esi - 0x16], 4
je 0x403f46
mov ecx, dword [ebp - 0x27c]
xor eax, eax
cmp ecx, eax
jne 0x403f06
push eax
push eax
push 3
push eax
push 1
push 0x80000000
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x403f46
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x403f3a
cmp eax, dword [esi + 0x104]
je 0x403f3a
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403f16
cmp ecx, dword [esi + 0x104]
je 0x403f46
jmp 0x403f16
mov edi, dword [ebp - 0x278]
mov eax, 0x14c
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x278], edi
cmp edi, dword [eax + 8]
jne 0x403d07
jmp 0x403f6f
xor eax, eax
jmp 0x403f72
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x288]
mov dword [eax], 1
mov ax, word [edi + 6]
mov word [ecx], ax
mov eax, dword [ebp - 0x298]
mov cx, word [ebp - 0x290]
mov word [eax], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret 0x24