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

Disassembly:
push 0xffffffffffffffff
push 0x5bcbb6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
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.00492000
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 0x492121
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 0x4927b7
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
cmp esi, ebp
ja 0x49212d
cmp edx, ebp
jbe 0x4927b7
cmp esi, 0xffffffff
ja 0x4927b7
jb 0x492141
cmp edx, 0xffffffff
jae 0x4927b7
mov eax, dword [edi]
cmp dword [eax], ebp
je 0x492150
cmp dword [eax + 4], ebp
jne 0x4921ee
cmp esi, ebp
jb 0x492169
ja 0x49215e
cmp edx, 0x10000
jbe 0x492169
mov ecx, 0x10000
mov dword [esp + 0x28], ebp
jmp 0x49216f
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.0046e950
add esp, 0x10
mov ebx, eax
mov dword [esp + 0xf4], 1
mov esi, dword [edi]
add dword [esi + 8], 0xffffffff
jne 0x4921a9
xor edi, edi
call fcn.00428c7e
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 0x4921e7
xor edi, edi
call fcn.00428c7e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00573721
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 0x4927b7
cmp dword [eax + 4], ebp
je 0x4927b7
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.00472a30
mov dword [esp + 0xf4], 2
lea esi, [esp + 0x6c]
call fcn.00472b00
cmp eax, 1
jne 0x4925d0
mov eax, dword [esp + 0xac]
cmp eax, 1
jne 0x492260
mov eax, dword [esp + 0x108]
mov dword [eax], 1
jmp 0x49226e
cmp eax, 2
jne 0x49226e
mov ecx, dword [esp + 0x108]
mov dword [ecx], eax
cmp dword [esp + 0xa8], 0
mov dword [esp + 0x1c], 0
jbe 0x4925d0
mov edi, dword [esp + 0x100]
xor ebp, ebp
lea ecx, [ecx]
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x4922a6
xor esi, esi
mov byte [esp + 0x23], 0
xor bl, bl
jmp 0x492319
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 0x4922e1
mov ecx, dword [0x6c9f84]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.00578964
mov ecx, dword [esp + 0x94]
add esp, 0xc
mov byte [esp + 0x23], 0
test eax, eax
jne 0x4922e6
mov byte [esp + 0x23], 1
test ecx, ecx
jne 0x4922ee
xor bl, bl
jmp 0x492319
test dword [ecx + ebp + 0x24], 0x20000000
lea eax, [ecx + ebp]
jne 0x492317
mov ecx, dword [0x6c9f8c]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.00578964
add esp, 0xc
test eax, eax
je 0x492317
xor bl, bl
jmp 0x492319
mov bl, 1
test esi, esi
je 0x49245f
test bl, bl
jne 0x49232f
cmp byte [esp + 0x23], bl
je 0x49245f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
call fcn.00472c30
test al, al
jne 0x49245f
lea eax, [esp + 0x4c]
push eax
call fcn.00498410
mov byte [esp + 0xf4], 3
cmp byte [esp + 0x23], 0
je 0x4923ac
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x49236d
or eax, 0xffffffff
jmp 0x492371
mov eax, dword [eax + ebp + 0x14]
push 0
push esi
push 0
push eax
lea ecx, [esp + 0xc8]
push edi
push ecx
call fcn.00492ae0
add esp, 0x18
mov byte [esp + 0xf4], 4
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00494070
mov byte [esp + 0xf4], 3
lea eax, [esp + 0xb8]
jmp 0x4923fd
test bl, bl
je 0x492403
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x4923c0
or eax, 0xffffffff
jmp 0x4923c4
mov eax, dword [eax + ebp + 0x14]
push 0
push esi
push 0
push eax
lea ecx, [esp + 0xe0]
push edi
push ecx
call fcn.004927e0
add esp, 0x18
mov byte [esp + 0xf4], 5
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00494070
mov byte [esp + 0xf4], 3
lea eax, [esp + 0xd0]
push eax
call fcn.00493ff0
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
sar eax, 2
test eax, eax
je 0x49244d
xor esi, esi
test eax, eax
jbe 0x492441
cmp esi, eax
jb 0x492421
call fcn.0057451a
mov ecx, dword [esp + 0x58]
lea edi, [ecx + esi*4]
lea eax, [esp + 0x34]
call fcn.0049c9c0
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
inc esi
sar eax, 2
cmp esi, eax
jb 0x492421
mov edi, dword [esp + 0x100]
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], 2
lea edx, [esp + 0x4c]
push edx
call fcn.00493ff0
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x28
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xa8]
jb 0x492290
cmp byte [esp + 0x1b], 0
je 0x4925d0
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.00472da0
mov ebp, eax
mov eax, dword [esp + 0x24]
mov ebx, edx
mov dword [esp + 0x68], ebx
cmp eax, edi
je 0x492552
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x492552
xor edx, edx
lea esi, [ecx + eax]
cmp edx, dword [esp + 0x30]
ja 0x492552
jb 0x4924dc
cmp esi, dword [esp + 0x2c]
ja 0x492552
cmp ecx, 0x100000
jb 0x4924e9
mov ecx, 0x100000
push 0
push eax
mov eax, dword [esp + 0x108]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0046e950
mov bl, 6
mov byte [esp + 0x104], bl
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0049cae0
add esp, 0x18
mov byte [esp + 0xf4], 7
mov edi, dword [esp + 0x114]
call fcn.00408484
mov byte [esp + 0xf4], bl
lea ecx, [esp + 0x1c]
call fcn.00408461
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x24]
call fcn.00426993
mov ebx, dword [esp + 0x68]
cmp ebx, dword [esp + 0x30]
ja 0x4925c5
jb 0x492560
cmp ebp, dword [esp + 0x2c]
jae 0x4925c5
mov eax, dword [esp + 0x2c]
sub eax, ebp
cmp eax, 0x4000
jbe 0x492572
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.0046e950
add esp, 0x10
mov byte [esp + 0xf4], 8
lea eax, [esp + 0x1c]
call fcn.0042f322
test al, al
jne 0x4925af
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0049c9c0
jmp 0x4925b4
mov byte [esp + 0x1b], 0
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x1c]
call fcn.00426993
cmp byte [esp + 0x1b], 0
jne 0x492734
mov edi, dword [esp + 0x104]
lea eax, [esp + 0x34]
call fcn.0049c9c0
mov eax, dword [esp + 0x30]
test eax, eax
ja 0x492664
jb 0x4925f4
cmp dword [esp + 0x2c], 0x30000
ja 0x492664
test eax, eax
ja 0x492606
cmp dword [esp + 0x2c], 0x10000
jbe 0x492734
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.0046e950
add esp, 0x10
mov byte [esp + 0xf4], 9
lea eax, [esp + 0x1c]
call fcn.0042f322
test al, al
jne 0x492653
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0049c9c0
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x1c]
jmp 0x492728
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.0046e950
add esp, 0x10
mov bl, 0xa
mov byte [esp + 0xf4], bl
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
je 0x49271c
cmp dword [eax + 4], 0
je 0x49271c
lea edi, [esp + 0x24]
lea eax, [esp + 0x34]
call fcn.0049c9c0
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.0046e950
add esp, 0x10
mov byte [esp + 0xf4], 0xb
lea eax, [esp + 0x1c]
call fcn.0042f322
test al, al
jne 0x49270c
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0049c9c0
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], bl
lea ebx, [esp + 0x1c]
call fcn.00426993
mov byte [esp + 0xf4], 2
lea ebx, [esp + 0x24]
call fcn.00426993
cmp byte [esp + 0x1b], 0
je 0x49279c
cmp byte [esp + 0x3c], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
not eax
not ecx
jne 0x49279c
push ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00493ca0
add esp, 0xc
mov byte [esp + 0xf4], 0xc
mov ebx, dword [esp + 0xfc]
push eax
call fcn.00491640
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 0x49279c
xor edi, edi
call fcn.00428c7e
mov edx, dword [esp + 0x24]
push edx
call fcn.00573721
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0xf4], 0
lea eax, [esp + 0x6c]
push eax
call fcn.00472ab0
mov eax, dword [esp + 0xfc]
jmp 0x4927b9
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