Function at 0x41ec70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2db6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
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 0x41f2da
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 0x41f2da
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x64], ebx
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x60], edi
test edi, edi
ja 0x41f2da
test ebx, ebx
jbe 0x41f2da
test edi, edi
ja 0x41f2da
jb 0x41ecf6
cmp ebx, 0xc800000
ja 0x41f2da
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x40]
push ecx
call fcn.0044ace0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0
je 0x41f2c6
mov byte [ebp - 4], 2
cmp ebx, 0x44
jne 0x41eda3
test edi, edi
jne 0x41eda3
push ebx
mov ecx, dword [ebp - 0x38]
lea esi, [ebp - 0x30]
call fcn.00454bc0
add esp, 4
mov byte [ebp - 4], 3
mov edi, dword [ebp + 0x28]
call fcn.004074b0
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00404f30
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x41eda3
call fcn.00405080
push edi
lea eax, [ebp - 0x24]
push eax
mov esi, 0x512d78
call fcn.00420680
mov dword [ebp - 0x5c], 0
mov ecx, dword [0x512d90]
mov dword [ebp - 0x58], ecx
mov edx, dword [0x512d78]
mov dword [ebp - 0x5c], edx
lea esi, [ebp - 0x5c]
lea edi, [ebp - 0x24]
call fcn.00406ef0
test al, al
je 0x41eda3
mov esi, edi
call fcn.0043a460
add eax, 4
mov edi, dword [ebp + 0xc]
call fcn.004074b0
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 0x41f2c6
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.00449df0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xac]
call fcn.00449ec0
cmp eax, 1
jne 0x41f2b6
mov edx, dword [ebp + 0x1c]
mov byte [edx], al
mov eax, dword [ebp - 0x6c]
cmp eax, 1
je 0x41ee02
cmp eax, 2
jne 0x41f2b6
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 0x41eeb6
cmp dword [ebp - 0x18], 0
ja 0x41eeb6
jb 0x41ee2f
cmp ecx, 0x3200000
ja 0x41eeb6
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.00454bc0
add esp, 4
mov byte [ebp - 4], 7
call fcn.004074b0
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.00404f30
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x41eeaf
call fcn.00405080
push edi
lea ecx, [ebp - 0x24]
push ecx
mov esi, 0x512d78
call fcn.00420680
mov dword [ebp - 0x54], 0
mov edx, dword [0x512d90]
mov dword [ebp - 0x50], edx
mov eax, dword [0x512d78]
mov dword [ebp - 0x54], eax
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x24]
call fcn.00406ef0
test al, al
je 0x41eeaf
mov esi, edi
call fcn.0043a460
add eax, 4
mov edi, dword [ebp + 0xc]
call fcn.004074b0
mov dword [ebp - 4], 5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
xor edi, edi
cmp dword [ecx - 0xc], edi
jne 0x41f2b6
lea ecx, [ebp + 0x24]
call fcn.00404dc0
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.0044a0b0
mov edx, dword [ebp + 0x28]
cmp edx, edi
je 0x41ef82
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x41ef82
lea esi, [ecx + edx]
xor eax, eax
cmp eax, dword [ebp - 0x18]
ja 0x41ef82
jb 0x41ef18
cmp esi, dword [ebp - 0x1c]
ja 0x41ef82
cmp ecx, 0x100000
mov ebx, ecx
jb 0x41ef27
mov ebx, 0x100000
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edi, dword [ebp - 0x1c]
call fcn.00420350
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.00455600
add esp, 0x14
mov byte [ebp - 4], 0xb
lea edi, [ebp + 0x24]
call fcn.004074b0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x28]
call fcn.00404f30
mov eax, edi
mov edi, dword [ebp + 0x18]
call fcn.004074b0
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 0x41f007
mov dword [ebp - 0x2c], 0
mov eax, dword [0x512dd0]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x512db8]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x48]
push eax
mov esi, 0x512db8
call fcn.00405da0
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.00408630
test al, al
je 0x41efd3
push 0
mov ecx, dword [ebp + 0x24]
push ecx
push 0
call fcn.00426cf0
test al, al
je 0x41f007
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x41f2aa
mov ecx, dword [ebp + 0x20]
mov byte [ecx], 1
jmp 0x41f2aa
mov edx, dword [ebp + 0x24]
cmp dword [edx - 0xc], 0
je 0x41f07e
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov esi, 0x512d28
call fcn.00420680
mov dword [ebp - 0x48], 0
mov edx, dword [0x512d40]
mov dword [ebp - 0x44], edx
mov eax, dword [0x512d28]
mov dword [ebp - 0x48], eax
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x2c]
call fcn.00406ef0
test al, al
je 0x41f07e
mov esi, edi
call fcn.0043a460
add eax, 4
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x28]
push ecx
call fcn.00448b20
add esp, 8
mov byte [ebp - 4], 0xc
mov ebx, dword [eax]
mov edi, dword [ebp + 0xc]
call fcn.0041fb60
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x28]
call fcn.00404f30
mov ebx, edi
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
jne 0x41f253
lea eax, [ebp - 0x11c]
push eax
call fcn.0041d8f0
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.0044a150
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 0x41f12e
lea eax, [ebp - 0x34]
push eax
call fcn.0041d890
mov bl, 0xf
mov byte [ebp - 4], bl
mov ecx, esi
lea eax, [ebp - 0xac]
call fcn.00449ff0
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0x28]
push ecx
lea edx, [ebp - 0xac]
push edx
mov ecx, esi
call fcn.0044a010
mov byte [ebp - 4], 0x10
lea edi, [ebp - 0x34]
call fcn.004074b0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x28]
call fcn.00404f30
mov ebx, edi
lea edi, [ebp - 0xd4]
call fcn.00420490
mov byte [ebp - 4], 0xe
mov eax, ebx
push eax
call fcn.0040c220
inc esi
jmp 0x41f0c3
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0xac]
call fcn.0044a1e0
mov dword [ebp - 4], 0xd
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0x18]
call fcn.00404dc0
mov byte [ebp - 4], 0x12
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x41f176
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.00450010
mov byte [ebp - 4], 0x13
call fcn.004074b0
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x28]
call fcn.00404f30
push 0xf
lea ecx, [ebp + 0x1c]
call fcn.004407c0
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
push eax
lea edx, [ebp + 0x28]
push edx
call fcn.004489e0
mov byte [ebp - 4], 0x15
push edi
call fcn.00405300
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x28]
call fcn.00404f30
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x1c]
call fcn.00404f30
test bl, bl
je 0x41f234
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0x28]
call fcn.00405480
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x28]
call fcn.004055e0
push 0
push str.c:windows_
lea ecx, [ebp + 0x28]
call fcn.004055a0
test eax, eax
jne 0x41f228
push 0x4e3f06
mov ecx, edi
call fcn.00404f90
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x28]
call fcn.00404f30
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x18]
call fcn.00404f30
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0041f310
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
je 0x41f2aa
push ebx
call fcn.0041fbe0
xor ecx, ecx
mov edx, 0x4e9d50
mov esi, ebx
call fcn.00405050
cmp eax, 0xffffffff
je 0x41f2aa
lea ecx, [eax + 1]
mov edx, 0x4e9d54
call fcn.00405050
cmp eax, 0xffffffff
je 0x41f2aa
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
mov edx, ebx
call fcn.0041ff80
mov byte [ebp - 4], 0x17
mov edi, ebx
call fcn.004074b0
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xc]
call fcn.00404f30
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x24]
call fcn.00404f30
mov byte [ebp - 4], 1
lea edx, [ebp - 0xac]
push edx
call fcn.00449e70
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.0044add0
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