Function at 0x41f530
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d38c6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp esi, 0xffffffff
je 0x41fb9a
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41fb9a
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x64], ebx
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x60], edi
test edi, edi
ja 0x41fb9a
test ebx, ebx
jbe 0x41fb9a
test edi, edi
ja 0x41fb9a
jb 0x41f5b6
cmp ebx, 0xc800000
ja 0x41fb9a
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x40]
push ecx
call fcn.0044b7d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0
je 0x41fb86
mov byte [ebp - 4], 2
cmp ebx, 0x44
jne 0x41f663
test edi, edi
jne 0x41f663
push ebx
mov ecx, dword [ebp - 0x38]
lea esi, [ebp - 0x30]
call fcn.00455630
add esp, 4
mov byte [ebp - 4], 3
mov edi, dword [ebp + 0x28]
call fcn.004074e0
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00405020
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x41f663
call fcn.00405170
push edi
lea eax, [ebp - 0x24]
push eax
mov esi, 0x513d78
call fcn.00420ff0
mov dword [ebp - 0x5c], 0
mov ecx, dword [0x513d90]
mov dword [ebp - 0x58], ecx
mov edx, dword [0x513d78]
mov dword [ebp - 0x5c], edx
lea esi, [ebp - 0x5c]
lea edi, [ebp - 0x24]
call fcn.0043ac30
test al, al
je 0x41f663
mov esi, edi
call fcn.0043f210
add eax, 4
mov edi, dword [ebp + 0xc]
call fcn.004074e0
mov dword [ebp - 4], 1
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x41fb86
mov ebx, dword [ebp - 0x18]
push ebx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0xac]
push ecx
call fcn.0044a8e0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xac]
call fcn.0044a9b0
cmp eax, 1
jne 0x41fb76
mov edx, dword [ebp + 0x1c]
mov byte [edx], al
mov eax, dword [ebp - 0x6c]
cmp eax, 1
je 0x41f6c2
cmp eax, 2
jne 0x41fb76
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp byte [ebp + 0x24], 0
je 0x41f776
cmp dword [ebp - 0x18], 0
ja 0x41f776
jb 0x41f6ef
cmp ecx, 0x3200000
ja 0x41f776
mov bl, 6
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x38]
lea esi, [ebp + 0x24]
call fcn.00455630
add esp, 4
mov byte [ebp - 4], 7
call fcn.004074e0
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.00405020
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x41f76f
call fcn.00405170
push edi
lea ecx, [ebp - 0x24]
push ecx
mov esi, 0x513d78
call fcn.00420ff0
mov dword [ebp - 0x54], 0
mov edx, dword [0x513d90]
mov dword [ebp - 0x50], edx
mov eax, dword [0x513d78]
mov dword [ebp - 0x54], eax
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x24]
call fcn.0043ac30
test al, al
je 0x41f76f
mov esi, edi
call fcn.0043f210
add eax, 4
mov edi, dword [ebp + 0xc]
call fcn.004074e0
mov dword [ebp - 4], 5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
xor edi, edi
cmp dword [ecx - 0xc], edi
jne 0x41fb76
lea ecx, [ebp + 0x24]
call fcn.00404eb0
mov byte [ebp - 4], 9
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
lea edx, [ebp + 0x1c]
push edx
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xac]
call fcn.0044aba0
mov edx, dword [ebp + 0x28]
cmp edx, edi
je 0x41f842
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x41f842
lea esi, [ecx + edx]
xor eax, eax
cmp eax, dword [ebp - 0x18]
ja 0x41f842
jb 0x41f7d8
cmp esi, dword [ebp - 0x1c]
ja 0x41f842
cmp ecx, 0x100000
mov ebx, ecx
jb 0x41f7e7
mov ebx, 0x100000
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edi, dword [ebp - 0x1c]
call fcn.00420c40
mov bl, 0xa
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x28]
push ecx
call fcn.00456070
add esp, 0x14
mov byte [ebp - 4], 0xb
lea edi, [ebp + 0x24]
call fcn.004074e0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x28]
call fcn.00405020
mov eax, edi
mov edi, dword [ebp + 0x18]
call fcn.004074e0
mov byte [ebp - 4], 9
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov edx, dword [ebp + 0x24]
cmp dword [edx - 0xc], edi
je 0x41f8c7
mov dword [ebp - 0x2c], 0
mov eax, dword [0x513dd0]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x513db8]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x48]
push eax
mov esi, 0x513db8
call fcn.00405f40
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.0043b980
test al, al
je 0x41f893
push 0
mov ecx, dword [ebp + 0x24]
push ecx
push 0
call fcn.00427890
test al, al
je 0x41f8c7
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x41fb6a
mov ecx, dword [ebp + 0x20]
mov byte [ecx], 1
jmp 0x41fb6a
mov edx, dword [ebp + 0x24]
cmp dword [edx - 0xc], 0
je 0x41f93e
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov esi, 0x513d28
call fcn.00420ff0
mov dword [ebp - 0x48], 0
mov edx, dword [0x513d40]
mov dword [ebp - 0x44], edx
mov eax, dword [0x513d28]
mov dword [ebp - 0x48], eax
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x2c]
call fcn.0043ac30
test al, al
je 0x41f93e
mov esi, edi
call fcn.0043f210
add eax, 4
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x28]
push ecx
call fcn.004495d0
add esp, 8
mov byte [ebp - 4], 0xc
mov ebx, dword [eax]
mov edi, dword [ebp + 0xc]
call fcn.00420450
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x28]
call fcn.00405020
mov ebx, edi
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
jne 0x41fb13
lea eax, [ebp - 0x11c]
push eax
call fcn.0041de70
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x88]
mov edi, dword [ecx + 0x28]
lea eax, [ebp - 0xac]
call fcn.0044ac40
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xd8], edx
xor esi, esi
mov dword [ebp - 0x4c], esi
cmp esi, dword [ebp - 0x70]
jae 0x41f9ee
lea eax, [ebp - 0x34]
push eax
call fcn.0041de10
mov bl, 0xf
mov byte [ebp - 4], bl
mov ecx, esi
lea eax, [ebp - 0xac]
call fcn.0044aae0
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0x28]
push ecx
lea edx, [ebp - 0xac]
push edx
mov ecx, esi
call fcn.0044ab00
mov byte [ebp - 4], 0x10
lea edi, [ebp - 0x34]
call fcn.004074e0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x28]
call fcn.00405020
mov ebx, edi
lea edi, [ebp - 0xd4]
call fcn.00420e00
mov byte [ebp - 4], 0xe
mov eax, ebx
push eax
call fcn.0043d8e0
inc esi
jmp 0x41f983
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0xac]
call fcn.0044acd0
mov dword [ebp - 4], 0xd
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0x18]
call fcn.00404eb0
mov byte [ebp - 4], 0x12
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x41fa36
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x10c], 0
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp + 0x28]
push ecx
push esi
call fcn.00450b00
mov byte [ebp - 4], 0x13
call fcn.004074e0
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x28]
call fcn.00405020
push 0xf
lea ecx, [ebp + 0x1c]
call fcn.004412c0
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
push eax
lea edx, [ebp + 0x28]
push edx
call fcn.00449490
mov byte [ebp - 4], 0x15
push edi
call fcn.004053f0
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x28]
call fcn.00405020
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x1c]
call fcn.00405020
test bl, bl
je 0x41faf4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0x28]
call fcn.004054b0
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x28]
call fcn.00405610
push 0
push str.c:windows_
lea ecx, [ebp + 0x28]
call fcn.004055d0
test eax, eax
jne 0x41fae8
push 0x4e4f06
mov ecx, edi
call fcn.00405080
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x28]
call fcn.00405020
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x18]
call fcn.00405020
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0041fbd0
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
je 0x41fb6a
push ebx
call fcn.004204d0
xor ecx, ecx
mov edx, 0x4ead70
mov esi, ebx
call fcn.00405140
cmp eax, 0xffffffff
je 0x41fb6a
lea ecx, [eax + 1]
mov edx, 0x4ead74
call fcn.00405140
cmp eax, 0xffffffff
je 0x41fb6a
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
mov edx, ebx
call fcn.00420870
mov byte [ebp - 4], 0x17
mov edi, ebx
call fcn.004074e0
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xc]
call fcn.00405020
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x24]
call fcn.00405020
mov byte [ebp - 4], 1
lea edx, [ebp - 0xac]
push edx
call fcn.0044a960
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.0044b8c0
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24