Function at 0x47d090
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68fa43
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x725fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47d36e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x47d36e
lea ecx, [edi + 1]
push ecx
call fcn.004fb4e3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47d36e
lea ecx, [ebp - 0x74]
call fcn.004ffd50
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0041ad50
mov byte [ebp - 4], 1
call fcn.004fc414
mov ecx, eax
test ecx, ecx
je 0x47d38e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
push 0x8000
push dword [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00500091
test eax, eax
je 0x47d254
push edi
push ebx
lea ecx, [ebp - 0x74]
call fcn.005001c7
mov ecx, ebx
mov byte [edi + ebx], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47d1a0
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040eee0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004f17e0
add esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
jb 0x47d1e9
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x47d1e9
xor ecx, ecx
jmp 0x47d1ff
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d1f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00403bb0
lea ecx, [ebp - 0x40]
call fcn.004035b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x47d249
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47d23f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d398
push edx
push ecx
call fcn.0063db1c
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.004fff28
mov esi, dword [ebp - 0x48]
push ebx
call fcn.00480420
mov edi, esp
mov dword [ebp - 0x5c], esp
mov dword [ebp - 0x44], edi
call fcn.004fc414
mov ecx, eax
test ecx, ecx
je 0x47d39d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, str._STRING_SEPARATOR_
mov byte [ebp - 4], 5
mov ecx, edi
test eax, 0xffff0000
jne 0x47d298
movzx eax, ax
push eax
call fcn.00403830
jmp 0x47d2a4
push 0x12
push str._STRING_SEPARATOR_
call fcn.00403bb0
push ecx
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
mov edi, esp
mov dword [ebp - 0x44], edi
push eax
mov dword [ebp - 0x44], eax
call fcn.004060e0
add esp, 4
lea ecx, [ebp - 0x58]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.004f2b90
add esp, 8
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
sub ebx, eax
cmp ebx, 4
jae 0x47d2e6
xor edi, edi
jmp 0x47d316
sar ebx, 2
xor esi, esi
test ebx, ebx
jle 0x47d311
nop
mov edi, dword [eax + esi*4]
mov ecx, dword [ebp - 0x4c]
push edi
call fcn.0047cd90
test al, al
jne 0x47d309
mov ecx, dword [ebp - 0x4c]
push edi
call fcn.0047cb30
mov eax, dword [ebp - 0x58]
inc esi
cmp esi, ebx
jl 0x47d2f0
mov edi, 1
lea ecx, [ebp - 0x58]
call fcn.0041e5c0
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47d33c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x88], 0x6a16c0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x47d362
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x74]
call fcn.004ffd72
mov eax, edi
jmp 0x47d370
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063db0b
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403b60
call fcn.00649da9
push 0x80004005
call fcn.00403b60
int3