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

Disassembly:
push 0xffffffffffffffff
push 0x58597e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xdc]
xor edi, edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0x48], edi
mov esi, dword [esp + 0xd4]
call fcn.0046da60
mov dword [esp + 0xcc], edi
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x2c], eax
and eax, ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x30], ecx
cmp eax, 0xffffffff
jne 0x4716cc
mov ecx, dword [esp + 0xd8]
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x471d0d
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp edx, edi
ja 0x4716e0
cmp ecx, edi
jbe 0x471d0d
cmp edx, 0xffffffff
ja 0x471d0d
jb 0x4716f4
cmp ecx, 0xffffffff
jae 0x471d0d
mov eax, dword [ebp]
cmp dword [eax], edi
je 0x471704
cmp dword [eax + 4], edi
jne 0x47178d
cmp edx, edi
jb 0x47171d
ja 0x471712
cmp ecx, 0x10000
jbe 0x47171d
mov ecx, 0x10000
mov dword [esp + 0x28], edi
jmp 0x471721
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xd8]
push edi
push edi
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0046d270
add esp, 0x10
mov ebx, eax
mov dword [esp + 0xcc], 2
mov esi, dword [ebp]
add dword [esi + 8], 0xffffffff
jne 0x471755
xor edi, edi
call fcn.00431b10
mov eax, dword [ebx]
inc dword [eax + 8]
mov dword [ebp], eax
mov byte [esp + 0xcc], 0
mov eax, dword [esp + 0x1c]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], edi
jne 0x47178d
xor edi, edi
call fcn.00431b10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004fdb3f
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [ebp]
cmp dword [eax], edi
je 0x471d0d
cmp dword [eax + 4], edi
je 0x471d0d
or ecx, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 1
mov byte [esp + 0x1b], 0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov byte [esp + 0x70], 0
call fcn.004787f0
cmp eax, 1
jne 0x471b53
mov eax, dword [esp + 0x6c]
cmp eax, 1
jne 0x471806
mov edx, dword [esp + 0xe0]
mov dword [edx], eax
jmp 0x471818
cmp eax, 2
jne 0x471818
mov eax, dword [esp + 0xe0]
mov dword [eax], 2
xor ebp, ebp
cmp dword [esp + 0x68], edi
jbe 0x471d0d
mov ebx, dword [esp + 0x4c]
add ebx, 0xc
cmp dword [esp + 0x4c], edi
je 0x4719d9
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x10]
mov esi, dword [ebx + 4]
cmp edx, dword [ebx]
je 0x471862
mov eax, dword [0x66bdd8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [ebx - 0xc]
push eax
call fcn.004ff37b
add esp, 0xc
mov byte [esp + 0x22], 0
test eax, eax
jne 0x471867
mov byte [esp + 0x22], 1
test dword [ebx + 0x18], 0x20000000
jne 0x47188f
mov eax, dword [0x66bde0]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebx - 0xc]
push ecx
call fcn.004ff37b
add esp, 0xc
mov byte [esp + 0x23], 0
test eax, eax
jne 0x471894
mov byte [esp + 0x23], 1
cmp esi, edi
je 0x4719d9
cmp byte [esp + 0x23], 0
jne 0x4718ae
cmp byte [esp + 0x22], 0
je 0x4719d9
mov edx, ebp
lea eax, [esp + 0x4c]
call fcn.00478900
test al, al
jne 0x4719d9
lea edx, [esp + 0x78]
push edx
call fcn.00472440
mov dword [esp + 0xcc], 3
cmp byte [esp + 0x22], 0
je 0x471921
mov eax, dword [ebx + 8]
push edi
push esi
push edi
push eax
mov eax, dword [esp + 0xe8]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.00471ff0
add esp, 0x18
mov byte [esp + 0xcc], 4
push eax
lea edx, [esp + 0x7c]
push edx
call fcn.00472530
mov byte [esp + 0xcc], 3
lea eax, [esp + 0x90]
push eax
jmp 0x47196a
cmp byte [esp + 0x23], 0
je 0x47196f
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0xd8]
push edi
push esi
push edi
push eax
push ecx
lea edx, [esp + 0xbc]
push edx
call fcn.00471d30
add esp, 0x18
mov byte [esp + 0xcc], 5
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00472530
mov byte [esp + 0xcc], 3
lea ecx, [esp + 0xa8]
push ecx
call fcn.004724b0
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x84]
sar eax, 2
cmp eax, edi
je 0x471b26
xor esi, esi
cmp eax, edi
jbe 0x4719c2
cmp esi, eax
jb 0x471997
call fcn.004fe843
mov edx, dword [esp + 0x84]
lea edi, [edx + esi*4]
lea eax, [esp + 0x34]
call fcn.00474470
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x84]
inc esi
sar eax, 2
cmp esi, eax
jb 0x471997
xor edi, edi
mov byte [esp + 0x1b], 1
mov byte [esp + 0xcc], 0
lea eax, [esp + 0x78]
push eax
call fcn.004724b0
inc ebp
add ebx, 0x28
cmp ebp, dword [esp + 0x68]
jb 0x47182b
cmp byte [esp + 0x1b], 0
je 0x471d0d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x54]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
call fcn.00478950
mov ebp, edx
mov edx, dword [esp + 0x24]
mov edi, eax
test edx, edx
je 0x471ab1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x471ab1
xor eax, eax
lea esi, [ecx + edx]
cmp eax, dword [esp + 0x30]
ja 0x471ab1
jb 0x471a3c
cmp esi, dword [esp + 0x2c]
ja 0x471ab1
cmp ecx, 0x100000
jb 0x471a49
mov ecx, 0x100000
push 0
push edx
mov edx, dword [esp + 0xe0]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0046d270
mov dword [esp + 0xdc], 6
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00476200
add esp, 0x18
mov byte [esp + 0xcc], 7
mov ebx, dword [esp + 0xec]
call fcn.0040e8f0
mov byte [esp + 0xcc], 6
lea ecx, [esp + 0x1c]
call fcn.0040ca90
mov byte [esp + 0xcc], 0
lea ebx, [esp + 0x24]
call fcn.00431770
cmp ebp, dword [esp + 0x30]
ja 0x471c9b
jb 0x471ac7
cmp edi, dword [esp + 0x2c]
jae 0x471c9b
mov eax, dword [esp + 0x2c]
sub eax, edi
cmp eax, 0x4000
jbe 0x471ad9
mov eax, 0x4000
mov ecx, dword [esp + 0xd8]
push ebp
push edi
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, eax
call fcn.0046d270
add esp, 0x10
mov dword [esp + 0xcc], 8
lea eax, [esp + 0x1c]
call fcn.004317a0
test al, al
jne 0x471b3d
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.00474470
mov byte [esp + 0xcc], 0
mov ebx, edi
jmp 0x471c96
mov byte [esp + 0xcc], 0
lea ecx, [esp + 0x78]
push ecx
call fcn.004724b0
jmp 0x471d0d
mov byte [esp + 0x1b], 0
mov byte [esp + 0xcc], 0
lea ebx, [esp + 0x1c]
jmp 0x471c96
mov edi, ebp
lea eax, [esp + 0x34]
call fcn.00474470
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
test ebp, ebp
ja 0x471be1
jb 0x471b74
cmp esi, 0x30000
ja 0x471be1
test ebp, ebp
ja 0x471b84
cmp esi, 0x10000
jbe 0x471ca2
mov eax, dword [esp + 0xd8]
push 0
push 0x10000
push eax
lea edx, [esp + 0x28]
lea ecx, [esi - 0x10000]
push edx
call fcn.0046d270
add esp, 0x10
mov dword [esp + 0xcc], 9
lea eax, [esp + 0x1c]
call fcn.004317a0
test al, al
jne 0x471bd0
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.00474470
mov byte [esp + 0x1b], 1
mov byte [esp + 0xcc], 0
lea ebx, [esp + 0x1c]
jmp 0x471c96
mov ebx, dword [esp + 0xd8]
mov eax, esi
mov ecx, ebp
shrd eax, ecx, 1
shr ecx, 1
add eax, 0xffff8000
adc ecx, 0xffffffff
push ecx
push eax
lea edx, [esp + 0x2c]
push ebx
push edx
mov ecx, 0x10000
call fcn.0046d270
add esp, 0x10
mov dword [esp + 0xcc], 0xa
lea eax, [esp + 0x24]
call fcn.004317a0
test al, al
jne 0x471c8a
lea edi, [esp + 0x24]
lea eax, [esp + 0x34]
call fcn.00474470
add esi, 0xffff0000
adc ebp, 0xffffffff
push ebp
push esi
lea eax, [esp + 0x24]
push ebx
push eax
mov ecx, 0x10000
call fcn.0046d270
add esp, 0x10
mov byte [esp + 0xcc], 0xb
lea eax, [esp + 0x1c]
call fcn.004317a0
test al, al
jne 0x471c79
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.00474470
mov byte [esp + 0x1b], 1
mov byte [esp + 0xcc], 0xa
lea ebx, [esp + 0x1c]
call fcn.00431770
mov byte [esp + 0xcc], 0
lea ebx, [esp + 0x24]
call fcn.00431770
cmp byte [esp + 0x1b], 0
je 0x471d0d
cmp byte [esp + 0x3c], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
not eax
not ecx
jne 0x471d0d
push ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004723c0
add esp, 0xc
mov dword [esp + 0xcc], 0xc
mov ebx, dword [esp + 0xd4]
push eax
call fcn.00471500
xor ebx, ebx
mov byte [esp + 0xcc], bl
mov eax, dword [esp + 0x24]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x471d0d
xor edi, edi
call fcn.00431b10
mov edx, dword [esp + 0x24]
push edx
call fcn.004fdb3f
add esp, 4
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret