Function at 0x401340
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413ad7
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x41b090]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
push edi
mov eax, dword [0x41b090]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0xa0], eax
call fcn.00401e90
push edi
push edi
push edi
push edi
push edi
push edi
push 0x30
push edi
push edi
lea ecx, [esp + 0xb8]
push ecx
push ebx
call fcn.00401e90
lea eax, [edi + 8]
mov ecx, str.LTAR
lea edx, [esp + 0x94]
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4013e6
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4013d0
jmp 0x401420
movzx esi, byte [ecx]
movzx eax, byte [edx]
sub eax, esi
jne 0x401412
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x401412
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x401412
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
cmp eax, edi
jne 0x4018bb
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0x9c]
inc eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
cmp ebx, edi
jne 0x401450
or eax, 0xffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jmp 0x4014b2
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
jne 0x401476
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jmp 0x4014b0
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea edx, [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
xor edi, edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edi
cmp esi, edi
jbe 0x4014e9
lea edi, [esi + esi + 4]
push edi
mov dword [esp + 0x58], edi
call fcn.0040646f
add esp, 4
push edi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.00406e50
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x4c], eax
xor edi, edi
mov dword [esp + 0x50], esi
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
mov dword [esp + 0x4c8], edi
mov ecx, dword [esp + 0x6c]
push 0x30
push ecx
push ebx
call fcn.00401e90
mov esi, dword [esp + 0x44]
shl esi, 5
mov dword [esp + 0x18], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], 0
test esi, esi
je 0x40154d
lea edi, [esi + esi + 4]
push edi
mov dword [esp + 0x74], edi
call fcn.0040646f
add esp, 4
push edi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.00406e50
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov ecx, dword [esp + 0x48]
xor edx, edx
push edx
push edx
push edx
push edx
push edx
xor eax, eax
push eax
push esi
push edx
add ecx, 0x30
push ecx
push edi
push ebx
mov byte [esp + 0x4d4], 1
call fcn.00401e90
cmp dword [esp + 0x44], 0
mov dword [esp + 0x14], 0
jbe 0x40189c
mov eax, 0xc
mov dword [esp + 0x10], eax
mov ecx, dword [edi + eax - 0xc]
cmp ecx, dword [esp + 0x48]
jbe 0x40159c
xor ecx, ecx
add ecx, dword [esp + 0x4c]
mov dword [esp + 0x64], ecx
lea ecx, [eax - 8]
cmp ecx, esi
jbe 0x4015ad
xor ecx, ecx
mov edx, dword [ecx + edi]
mov ecx, dword [ecx + edi + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov edx, eax
cmp eax, esi
jbe 0x4015c4
xor edx, edx
mov ebx, dword [edx + edi]
mov edx, dword [edx + edi + 4]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
cmp ecx, dword [esp + 0x38]
ja 0x401882
jb 0x4015ed
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x34]
jae 0x401882
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
lea edx, [esp + 0x84]
push str._sNo._08d._s
push edx
call fcn.00401230
add esp, 0x14
mov byte [esp + 0x4a8], 2
cmp dword [esp + 0x8c], 0x10
jb 0x401718
mov eax, dword [esp + 0x78]
test eax, eax
je 0x401869
push 0
push 0
xor ebx, ebx
call fcn.00401000
mov ecx, eax
or ecx, edx
je 0x401869
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x401869
mov ebx, eax
lea esi, [esp + 0x58]
call fcn.004010e0
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x4a8], 4
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x401688
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x5c]
xor edx, edx
cmp eax, esi
je 0x40169d
mov ebx, dword [esp + 0x58]
push edx
push ecx
call fcn.00401000
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x2c]
call fcn.00401170
mov ecx, dword [esp + 0x2c]
test cl, 0xf
je 0x4016c6
mov ebx, ecx
shr ebx, 4
inc ebx
shl ebx, 4
call fcn.00401090
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
xor esi, esi
cmp esi, eax
ja 0x401721
jb 0x4016da
cmp ecx, ebx
ja 0x401721
lea esi, [esp + 0x28]
call fcn.00401090
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 4
push 0
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
call fcn.00401fd0
mov ebx, dword [esp + 0x18]
jmp 0x40181f
lea eax, [esp + 0x78]
jmp 0x401633
add ebx, dword [esp + 0x1c]
adc eax, dword [esp + 0x20]
cmp ebx, dword [esp + 0x34]
jne 0x401796
cmp eax, dword [esp + 0x38]
jne 0x401796
mov ebx, dword [esp + 0x18]
mov edx, esi
mov esi, dword [esp + 0x10]
mov eax, esi
cmp esi, ebx
jbe 0x401747
xor eax, eax
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + edi + 4], edx
xor eax, eax
lea eax, [esi + 8]
cmp eax, ebx
jbe 0x40175d
xor eax, eax
push 0
push 0
push 0
push 0
push 0
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + edi + 4], edx
mov edx, dword [esp + 0x40]
push 4
xor eax, eax
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
call fcn.00401fd0
jmp 0x401823
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4017a6
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x4017b1
push 0
push 0
xor ebx, ebx
call fcn.00401000
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add ecx, 0xfffffff8
cmp ecx, ebx
jbe 0x4017c2
xor ecx, ecx
mov dword [ecx + edi], eax
mov dword [ecx + edi + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
xor esi, esi
mov eax, ecx
cmp ecx, ebx
jbe 0x4017db
xor eax, eax
mov dword [eax + edi], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + edi + 4], esi
xor eax, eax
lea eax, [ecx + 8]
cmp eax, ebx
jbe 0x4017f1
xor eax, eax
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
push 0
mov dword [eax + edi], edx
mov edx, dword [esp + 0x3c]
push 4
mov dword [eax + edi + 4], esi
xor eax, eax
push eax
mov eax, dword [esp + 0x40]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push eax
call fcn.00401fd0
mov esi, dword [esp + 0x10]
lea eax, [esi + 0x10]
cmp eax, ebx
jbe 0x40182c
xor eax, eax
push 0
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push 4
mov dword [eax + edi], 0
xor eax, eax
push eax
push ebx
push eax
mov eax, dword [esp + 0x6c]
add eax, 0x30
push eax
push edi
push ecx
call fcn.00401fd0
lea esi, [esp + 0x28]
call fcn.00401140
lea esi, [esp + 0x58]
call fcn.00401140
lea esi, [esp + 0x78]
mov byte [esp + 0x4a8], 1
call fcn.00401900
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 0x20
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x44]
jb 0x401590
push str._r_nok____r_n_r_n
call fcn.004062de
add esp, 4
lea esi, [esp + 0x68]
call fcn.00401140
lea esi, [esp + 0x4c]
call fcn.00401140
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.00405be1
mov esp, ebp
pop ebp
ret