Function at 0x41d030
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c19e
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp edi, 1
je 0x41d254
mov edx, dword [ebp + 0x20]
lea eax, [edx*8 - 1]
shr eax, 2
lea ecx, [eax*4 + 4]
mov eax, dword [ebp + 0x24]
dec eax
shr eax, 2
lea eax, [eax*4 + 0xc]
imul edx, eax
lea eax, [ecx + 0x38]
add eax, edx
cmp eax, 0xfffffff7
ja 0x41d21c
mov esi, dword [ebp + 0x10]
add eax, 8
cmp esi, eax
jb 0x41d21c
test edi, edi
jne 0x41d2a8
push dword [ebp - 0x160]
mov edx, ebx
push dword [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0041d620
add esp, 0xc
lea ecx, [ebp - 0x34]
push edi
push esi
mov byte [ebp - 4], 0xa
call fcn.0041a100
sub esp, 0x10
lea eax, [ebp - 0x34]
push 0xc0000000
push eax
lea ecx, [ebp - 0x1ac]
call fcn.0041d700
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x1ac]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x41d179
mov eax, dword [ebp - 0x1ac]
push 1
push ecx
add eax, 8
push eax
lea ecx, [ebp + 0x20]
call fcn.0041d430
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x1ac]
push eax
call fcn.0041a3b0
mov eax, 2
xchg dword [esi], eax
lea ecx, [ebp - 0x1ac]
jmp 0x41d3ce
cmp eax, 1
je 0x41d1bb
cmp eax, 2
je 0x41d1bb
push ecx
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0x13
call fcn.004010f0
push 0x673774
lea eax, [ebp - 0x104]
push eax
call fcn.005d3ef0
push ecx
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 9
call fcn.004010f0
push 0x673774
lea eax, [ebp - 0x15c]
push eax
call fcn.005d3ef0
mov dword [ebp - 0x10], esp
push 0
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call fcn.0041a100
push 0
push 0
mov dword [ebp - 4], 0xe
call fcn.005d3ef0
mov eax, 0x41d206
ret
push ecx
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0x12
call fcn.004010f0
push 0x673774
lea eax, [ebp - 0x130]
push eax
call fcn.005d3ef0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x160]
push eax
push 0xc0000000
mov byte [ebp - 4], 1
push dword [ebx]
lea ecx, [ebp - 0x54]
push 1
mov dword [ebp - 0x160], 0
call fcn.00419f70
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00419f10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00419ed0
mov edi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x170], xmm0
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x34]
call ebx
test eax, eax
je 0x41d3f9
call edi
test eax, eax
jne 0x41d2e3
push 1
call esi
mov edx, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x16c]
mov eax, edx
or eax, ecx
je 0x41d2c5
cmp edx, 1
jne 0x41d332
test ecx, ecx
jne 0x41d332
push ecx
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], ecx
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x184], 0x13
call fcn.004010f0
push 0x673774
lea eax, [ebp - 0xd8]
push eax
call fcn.005d3ef0
sub esp, 0x10
lea eax, [ebp - 0x34]
push 0xc0000000
push eax
lea ecx, [ebp - 0x1c0]
call fcn.0041d700
mov byte [ebp - 4], 0x11
mov ebx, dword [ebp - 0x1c0]
mov eax, dword [ebx]
cmp eax, 1
je 0x41d35e
test eax, eax
jne 0x41d36a
call edi
test eax, eax
jne 0x41d353
push 1
call esi
jmp 0x41d353
cmp eax, 2
je 0x41d3a1
push ecx
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0x13
call fcn.004010f0
push 0x673774
lea eax, [ebp - 0x80]
push eax
call fcn.005d3ef0
mov eax, dword [ebp - 0x1c0]
push 0
push ecx
add eax, 8
push eax
lea ecx, [ebp + 0x20]
call fcn.0041d430
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x1c0]
push eax
call fcn.0041a3b0
lea ecx, [ebp - 0x1c0]
call fcn.0041a2f0
lea ecx, [ebp - 0x34]
call fcn.00419ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
lea ecx, [ebp - 0x1c8]
call fcn.004010b0
push eax
lea ecx, [ebp - 0xac]
call fcn.004010f0
push 0x673774
lea eax, [ebp - 0xac]
push eax
call fcn.005d3ef0
int3