Function at 0x4124c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492b88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
cmp ecx, 6
jne 0x412655
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00410090
add esp, 8
mov edi, dword [eax]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x41251b
xor eax, eax
jmp 0x412546
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41252e
xor eax, eax
jmp 0x412546
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.00404150
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412560
sub ecx, edi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f10
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [esi + 0x6c]
push 4
add ecx, 0x28
mov byte [ebp - 4], 1
call fcn.004118c0
cmp dword [ebp - 0x18], 0x10
jb 0x41259a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00460f43
add esp, 4
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4125ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x4125dc
mov dword [eax + 0x1c], 6
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, ebx
je 0x412637
mov dword [eax + 0x50], ebx
mov ecx, dword [esi + 0x6c]
mov dword [ecx + 0x54], ebx
mov eax, dword [esi + 0x6c]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [edx + 0x14]
cmp ecx, ebx
je 0x412637
call fcn.0040cdf0
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
push ebx
call fcn.0040d4b0
mov edx, dword [esi + 0x6c]
mov eax, dword [edx + 0x14]
push eax
push 0x9d08
push 0x111
call fcn.00415210
push eax
call edi
mov ecx, dword [esi + 0x6c]
mov dword [ecx + 0x14], ebx
mov edx, dword [ebp - 0x30]
push esi
push 0x18008
push 0x111
mov dword [esi + 0x60], edx
call fcn.00415210
push eax
call edi
jmp 0x4127bb
cmp ecx, 5
jne 0x4127bb
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push 0x2a
call edx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040fb30
mov eax, dword [ebp - 0x30]
push 0x5c
mov ebx, 2
push eax
mov dword [ebp - 4], ebx
call fcn.004638bd
add esp, 8
test eax, eax
je 0x4126db
sub eax, dword [ebp - 0x30]
sar eax, 1
test eax, eax
jle 0x4126db
inc eax
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040f120
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 3
call fcn.00401890
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4126db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x30]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41276d
lea edx, [ebp - 0x38]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x38]
mov dword [esi + 8], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push edi
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push eax
push ecx
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0042b010
add esp, 0xc
lea ecx, [esi + 0x58]
push eax
mov byte [ebp - 4], 4
call fcn.00401890
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412775
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x6c]
cmp byte [ecx + 1], 0
je 0x41278a
mov edx, dword [ebp - 0x30]
push edx
call fcn.004290f0
add esp, 4
push 0
push 7
mov ecx, esi
call fcn.0040e2b0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret 0xc