Function at 0x41bfb0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x448626
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551a0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcc]
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x41c2a1
cmp dword [eax], 0xffffffff
je 0x41c2a1
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41c01c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c2a1
mov eax, dword [esp + 0x2c]
push 1
push ebx
push ebx
push eax
call fcn.0043f1c0
mov edi, eax
mov eax, dword [esp + 0xcc]
xor ecx, ecx
mov esi, edx
add edi, ebp
adc esi, ecx
mov dword [esp + 0xb0], esi
call fcn.00409fa0
test al, al
je 0x41c2a1
call fcn.0041bea0
cmp esi, ebx
mov ebp, eax
ja 0x41c068
jb 0x41c2a1
cmp edi, ebp
jb 0x41c2a1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], ebx
call fcn.0041fcc0
mov esi, dword [esp + 0x20]
cmp esi, ebx
mov dword [esp + 0x18], ebx
je 0x41c09a
mov edx, dword [esp + 0x24]
sub edx, esi
jne 0x41c0a3
call fcn.00430697
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0xcc]
push ebp
lea edx, [esp + 0x1c]
call fcn.00409ea0
test al, al
je 0x41c28d
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, ebp
jne 0x41c28d
cmp ecx, ebx
jne 0x41c28d
lea eax, [esp + 0x44]
push eax
call fcn.0041abe0
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 1
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
push edx
lea ebx, [esp + 0x24]
call fcn.0041ba90
add esp, 8
test al, al
je 0x41c27c
mov esi, dword [esp + 0xc8]
lea eax, [esp + 0x44]
add esi, 0x2c
push eax
mov eax, esi
call fcn.0041fa60
lea ecx, [esp + 0x54]
push ecx
lea eax, [esi + 0x10]
call fcn.0041fa60
lea edx, [esp + 0x64]
push edx
lea eax, [esi + 0x20]
call fcn.0041fa60
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
push ecx
mov dword [esi + 0x30], eax
call fcn.0041abe0
lea esi, [esp + 0x78]
mov byte [esp + 0xc0], 2
call fcn.0041ac40
mov edx, esi
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00422980
add esp, 8
test al, al
je 0x41c26b
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00422980
add esp, 8
test al, al
je 0x41c26b
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0xa8]
jne 0x41c26b
cmp edi, ebp
jne 0x41c1e4
xor eax, eax
cmp dword [esp + 0xb0], eax
jne 0x41c1e4
mov byte [esp + 0xc0], 1
call fcn.0041d320
lea esi, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.0041d320
mov esi, ebx
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040b300
mov al, 1
jmp 0x41c318
mov ecx, dword [esp + 0xcc]
push 4
lea edx, [esp + 0x1c]
lea esi, [esp + 0x34]
mov dword [esp + 0x34], 0
call fcn.00409ea0
test al, al
je 0x41c26b
cmp dword [esp + 0x18], 4
jne 0x41c26b
mov ebx, dword [esp + 0x30]
sub edi, ebp
cmp ebx, edi
ja 0x41c26b
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 3
call fcn.0041fcc0
push ebx
xor edi, edi
lea esi, [esp + 0x38]
call fcn.0041fda0
mov ecx, dword [esp + 0xd0]
lea edx, [esp + 0x1c]
mov esi, eax
call fcn.00409ea0
test al, al
jne 0x41c2a5
lea esi, [esp + 0x34]
mov byte [esp + 0xc0], 2
call fcn.0040b300
lea esi, [esp + 0x78]
mov byte [esp + 0xc0], 1
call fcn.0041d320
lea esi, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.0041d320
lea esi, [esp + 0x1c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040b300
xor al, al
jmp 0x41c318
cmp dword [esp + 0x18], ebx
jne 0x41c25a
lea ecx, [esp + 0x34]
lea ebx, [esp + 0x44]
call fcn.0041c340
test al, al
je 0x41c25a
mov ecx, dword [esp + 0xc8]
push ecx
lea ebx, [esp + 0x38]
call fcn.0041c690
lea esi, [esp + 0x34]
mov bl, al
mov byte [esp + 0xc0], 2
call fcn.0040b300
lea esi, [esp + 0x78]
mov byte [esp + 0xc0], 1
call fcn.0041d320
lea esi, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.0041d320
lea esi, [esp + 0x1c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040b300
mov al, bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8