Function at 0x412c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceb72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2b40
call fcn.0048f620
mov dword [ebp - 0x2b4c], ecx
push 0
lea ecx, [ebp - 0x10ec]
call fcn.00437480
mov dword [ebp - 4], 0
push 0xc34
push 0
lea eax, [ebp - 0x252c]
push eax
call fcn.00490070
add esp, 0xc
mov ecx, dword [ebp - 0x2b4c]
call fcn.0040c350
mov dword [ebp - 0x2744], eax
cmp dword [ebp - 0x2744], 0
jne 0x412ca3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10ec]
call fcn.00417780
jmp 0x41305f
lea ecx, [ebp - 0x2744]
push ecx
mov ecx, dword [ebp - 0x2b4c]
call fcn.0040c370
mov dword [ebp - 0x2530], eax
mov edx, dword [ebp - 0x2530]
push edx
mov ecx, dword [ebp - 0x2b4c]
call fcn.004a0ca5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x273c]
call fcn.00417720
lea ecx, [ebp - 0x273c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2b4c]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x2b4c]
mov eax, dword [edx + 0x60]
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
je 0x412d23
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10ec]
call fcn.00417780
jmp 0x41305f
lea eax, [ebp - 0x273c]
push eax
mov ecx, dword [ebp - 0x2b4c]
call fcn.0041497e
mov dword [ebp - 0x252c], eax
lea ecx, [ebp - 0x2638]
push ecx
lea edx, [ebp - 0x2528]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x18f8]
call fcn.00417750
lea eax, [ebp - 0x18f8]
push eax
mov ecx, dword [ebp - 0x2538]
push ecx
mov edx, dword [ebp - 0x2b4c]
mov ecx, dword [edx + 0x60]
mov eax, dword [ebp - 0x2b4c]
mov edx, dword [eax + 0x60]
mov eax, dword [edx]
call dword [eax + 0x2c]
test eax, eax
jne 0x412d97
lea ecx, [ebp - 0x18f8]
push ecx
lea edx, [ebp - 0x2424]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x273c]
push eax
lea ecx, [ebp - 0x2320]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x2740], 0
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [ebp - 0x273c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2740], eax
cmp dword [ebp - 0x2740], 0xffffffff
jne 0x412e5e
lea ecx, [ebp - 0x2748]
call fcn.00402dc0
mov byte [ebp - 4], 1
push 0xf7
lea ecx, [ebp - 0x2748]
call fcn.004a7fee
lea eax, [ebp - 0x273c]
push eax
lea ecx, [ebp - 0x2748]
call fcn.00430bb0
push eax
lea ecx, [ebp - 0x2b48]
push ecx
call fcn.004900c8
add esp, 0xc
push 0
lea edx, [ebp - 0x2b48]
push edx
call fcn.004452b6
push eax
call fcn.0045be40
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2748]
call fcn.004a6f4b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10ec]
call fcn.00417780
jmp 0x41305f
mov dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp - 0x2740]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
push 0xa
lea ecx, [ebp - 0x221c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00492385
add esp, 0xc
mov eax, dword [ebp - 0x2740]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2740], 0
push 0x704
push 0
lea ecx, [ebp - 0x17f0]
push ecx
call fcn.00490070
add esp, 0xc
call sub.CRCommon.dll_GetReaderFilter
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x17f0]
push edx
lea eax, [ebp - 0x273c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx + 8]
test eax, eax
je 0x412ef4
push 0x704
push 0
lea eax, [ebp - 0x17f0]
push eax
call fcn.00490070
add esp, 0xc
lea ecx, [ebp - 0x17f0]
push ecx
lea edx, [ebp - 0x2118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x2534]
call fcn.00402dc0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14f0]
push eax
push 0x5035f0
lea ecx, [ebp - 0x2534]
push ecx
call fcn.0049fbda
add esp, 0xc
lea ecx, [ebp - 0x2534]
call fcn.00430bb0
push eax
lea edx, [ebp - 0x2014]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x16f0]
push eax
lea ecx, [ebp - 0x1f10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x15f0]
push edx
lea eax, [ebp - 0x1e0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x14ec]
push ecx
lea edx, [ebp - 0x1d08]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x13ec]
push eax
lea ecx, [ebp - 0x1c04]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x12ec]
push edx
lea eax, [ebp - 0x1b00]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x11ec]
push ecx
lea edx, [ebp - 0x19fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x252c]
push eax
lea ecx, [ebp - 0x10ec]
call fcn.00437c66
lea ecx, [ebp - 0x10ec]
call fcn.004a7bb4
cmp eax, 1
jne 0x41303e
lea ecx, [ebp - 0x252c]
push ecx
lea ecx, [ebp - 0x10ec]
call fcn.00437c8e
lea edx, [ebp - 0x2320]
push edx
lea eax, [ebp - 0x2638]
push eax
call fcn.00496770
add esp, 8
test eax, eax
je 0x41303e
lea ecx, [ebp - 0x2528]
push ecx
lea edx, [ebp - 0x2638]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x273c]
push eax
mov ecx, dword [ebp - 0x2530]
push ecx
mov ecx, dword [ebp - 0x2b4c]
call fcn.004146d2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2534]
call fcn.004a6f4b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10ec]
call fcn.00417780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret