Function at 0x491c50
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5bc8c6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov edi, dword [esp + 0x104]
mov ebx, dword [esp + 0xfc]
xor ebp, ebp
mov dword [esp + 0xf4], ebp
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00491be0
mov dword [esp + 0xf4], ebp
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x110]
mov edx, eax
and eax, ecx
mov esi, ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
cmp eax, 0xffffffff
jne 0x491d01
mov ecx, dword [esp + 0x100]
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x492397
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
cmp esi, ebp
ja 0x491d0d
cmp edx, ebp
jbe 0x492397
cmp esi, 0xffffffff
ja 0x492397
jb 0x491d21
cmp edx, 0xffffffff
jae 0x492397
mov eax, dword [edi]
cmp dword [eax], ebp
je 0x491d30
cmp dword [eax + 4], ebp
jne 0x491dce
cmp esi, ebp
jb 0x491d49
ja 0x491d3e
cmp edx, 0x10000
jbe 0x491d49
mov ecx, 0x10000
mov dword [esp + 0x28], ebp
jmp 0x491d4f
mov ecx, edx
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x100]
push ebp
push ebp
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0046e640
add esp, 0x10
mov ebx, eax
mov dword [esp + 0xf4], 1
mov esi, dword [edi]
add dword [esi + 8], 0xffffffff
jne 0x491d89
xor edi, edi
call fcn.00428aec
mov edi, dword [esp + 0x104]
mov eax, dword [ebx]
inc dword [eax + 8]
mov dword [edi], eax
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x1c]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebp
jne 0x491dc7
xor edi, edi
call fcn.00428aec
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00573401
mov edi, dword [esp + 0x108]
add esp, 4
mov dword [esp + 0x1c], ebp
mov ebx, dword [esp + 0xfc]
mov eax, dword [edi]
cmp dword [eax], ebp
je 0x492397
cmp dword [eax + 4], ebp
je 0x492397
or ecx, 0xffffffff
push ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x4c], 1
mov byte [esp + 0x2b], 0
call fcn.004725f0
mov dword [esp + 0xf4], 2
lea esi, [esp + 0x6c]
call fcn.004726c0
cmp eax, 1
jne 0x4921b0
mov eax, dword [esp + 0xac]
cmp eax, 1
jne 0x491e40
mov eax, dword [esp + 0x108]
mov dword [eax], 1
jmp 0x491e4e
cmp eax, 2
jne 0x491e4e
mov ecx, dword [esp + 0x108]
mov dword [ecx], eax
cmp dword [esp + 0xa8], 0
mov dword [esp + 0x1c], 0
jbe 0x4921b0
mov edi, dword [esp + 0x100]
xor ebp, ebp
lea ecx, [ecx]
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x491e86
xor esi, esi
mov byte [esp + 0x23], 0
xor bl, bl
jmp 0x491ef9
mov edx, dword [esp + 0x8c]
mov edx, dword [edx + 0x10]
mov esi, dword [ecx + ebp + 0x10]
cmp edx, dword [ecx + ebp + 0xc]
lea eax, [ecx + ebp]
je 0x491ec1
mov ecx, dword [0x6d7964]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.00578644
mov ecx, dword [esp + 0x94]
add esp, 0xc
mov byte [esp + 0x23], 0
test eax, eax
jne 0x491ec6
mov byte [esp + 0x23], 1
test ecx, ecx
jne 0x491ece
xor bl, bl
jmp 0x491ef9
test dword [ecx + ebp + 0x24], 0x20000000
lea eax, [ecx + ebp]
jne 0x491ef7
mov ecx, dword [0x6d796c]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.00578644
add esp, 0xc
test eax, eax
je 0x491ef7
xor bl, bl
jmp 0x491ef9
mov bl, 1
test esi, esi
je 0x49203f
test bl, bl
jne 0x491f0f
cmp byte [esp + 0x23], bl
je 0x49203f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
call fcn.004727f0
test al, al
jne 0x49203f
lea eax, [esp + 0x4c]
push eax
call fcn.00482e10
mov byte [esp + 0xf4], 3
cmp byte [esp + 0x23], 0
je 0x491f8c
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x491f4d
or eax, 0xffffffff
jmp 0x491f51
mov eax, dword [eax + ebp + 0x14]
push 0
push esi
push 0
push eax
lea ecx, [esp + 0xc8]
push edi
push ecx
call fcn.004926c0
add esp, 0x18
mov byte [esp + 0xf4], 4
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00493c50
mov byte [esp + 0xf4], 3
lea eax, [esp + 0xb8]
jmp 0x491fdd
test bl, bl
je 0x491fe3
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x491fa0
or eax, 0xffffffff
jmp 0x491fa4
mov eax, dword [eax + ebp + 0x14]
push 0
push esi
push 0
push eax
lea ecx, [esp + 0xe0]
push edi
push ecx
call fcn.004923c0
add esp, 0x18
mov byte [esp + 0xf4], 5
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00493c50
mov byte [esp + 0xf4], 3
lea eax, [esp + 0xd0]
push eax
call fcn.00493bd0
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
sar eax, 2
test eax, eax
je 0x49202d
xor esi, esi
test eax, eax
jbe 0x492021
cmp esi, eax
jb 0x492001
call fcn.005741fa
mov ecx, dword [esp + 0x58]
lea edi, [ecx + esi*4]
lea eax, [esp + 0x34]
call fcn.0049c6c0
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
inc esi
sar eax, 2
cmp esi, eax
jb 0x492001
mov edi, dword [esp + 0x100]
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], 2
lea edx, [esp + 0x4c]
push edx
call fcn.00493bd0
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x28
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xa8]
jb 0x491e70
cmp byte [esp + 0x1b], 0
je 0x4921b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x6c]
xor edi, edi
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
call fcn.00472960
mov ebp, eax
mov eax, dword [esp + 0x24]
mov ebx, edx
mov dword [esp + 0x68], ebx
cmp eax, edi
je 0x492132
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x492132
xor edx, edx
lea esi, [ecx + eax]
cmp edx, dword [esp + 0x30]
ja 0x492132
jb 0x4920bc
cmp esi, dword [esp + 0x2c]
ja 0x492132
cmp ecx, 0x100000
jb 0x4920c9
mov ecx, 0x100000
push 0
push eax
mov eax, dword [esp + 0x108]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0046e640
mov bl, 6
mov byte [esp + 0x104], bl
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0049c7e0
add esp, 0x18
mov byte [esp + 0xf4], 7
mov edi, dword [esp + 0x114]
call fcn.00408450
mov byte [esp + 0xf4], bl
lea ecx, [esp + 0x1c]
call fcn.0040842d
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x24]
call fcn.004266a7
mov ebx, dword [esp + 0x68]
cmp ebx, dword [esp + 0x30]
ja 0x4921a5
jb 0x492140
cmp ebp, dword [esp + 0x2c]
jae 0x4921a5
mov eax, dword [esp + 0x2c]
sub eax, ebp
cmp eax, 0x4000
jbe 0x492152
mov eax, 0x4000
mov edx, dword [esp + 0x100]
push ebx
push ebp
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0046e640
add esp, 0x10
mov byte [esp + 0xf4], 8
lea eax, [esp + 0x1c]
call fcn.0042f672
test al, al
jne 0x49218f
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0049c6c0
jmp 0x492194
mov byte [esp + 0x1b], 0
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x1c]
call fcn.004266a7
cmp byte [esp + 0x1b], 0
jne 0x492314
mov edi, dword [esp + 0x104]
lea eax, [esp + 0x34]
call fcn.0049c6c0
mov eax, dword [esp + 0x30]
test eax, eax
ja 0x492244
jb 0x4921d4
cmp dword [esp + 0x2c], 0x30000
ja 0x492244
test eax, eax
ja 0x4921e6
cmp dword [esp + 0x2c], 0x10000
jbe 0x492314
mov edx, dword [esp + 0x100]
mov ecx, dword [esp + 0x2c]
push 0
push 0x10000
push edx
lea eax, [esp + 0x28]
add ecx, 0xffff0000
push eax
call fcn.0046e640
add esp, 0x10
mov byte [esp + 0xf4], 9
lea eax, [esp + 0x1c]
call fcn.0042f672
test al, al
jne 0x492233
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0049c6c0
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x1c]
jmp 0x492308
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x100]
mov ecx, esi
mov edx, ebp
shrd ecx, edx, 1
shr edx, 1
add ecx, 0xffff8000
adc edx, 0xffffffff
push edx
push ecx
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x10000
call fcn.0046e640
add esp, 0x10
mov bl, 0xa
mov byte [esp + 0xf4], bl
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
je 0x4922fc
cmp dword [eax + 4], 0
je 0x4922fc
lea edi, [esp + 0x24]
lea eax, [esp + 0x34]
call fcn.0049c6c0
mov edx, dword [esp + 0x100]
add esi, 0xffff0000
adc ebp, 0xffffffff
push ebp
push esi
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, 0x10000
call fcn.0046e640
add esp, 0x10
mov byte [esp + 0xf4], 0xb
lea eax, [esp + 0x1c]
call fcn.0042f672
test al, al
jne 0x4922ec
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0049c6c0
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], bl
lea ebx, [esp + 0x1c]
call fcn.004266a7
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x24]
call fcn.004266a7
cmp byte [esp + 0x1b], 0
je 0x49237c
cmp byte [esp + 0x3c], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
not eax
not ecx
jne 0x49237c
push ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00493880
add esp, 0xc
mov byte [esp + 0xf4], 0xc
mov ebx, dword [esp + 0xfc]
push eax
call fcn.00491220
mov byte [esp + 0xf4], 2
mov eax, dword [esp + 0x24]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x49237c
xor edi, edi
call fcn.00428aec
mov edx, dword [esp + 0x24]
push edx
call fcn.00573401
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0xf4], 0
lea eax, [esp + 0x6c]
push eax
call fcn.00472670
mov eax, dword [esp + 0xfc]
jmp 0x492399
mov eax, ebx
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret