Function at 0x4070e0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x580b51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5c6938]
push ebx
xor ebx, ebx
inc eax
push ebp
push esi
cmp eax, 0xb
push edi
mov dword [esp + 0x10], ecx
mov dword [0x5c6938], eax
jbe 0x4071c0
mov dword [0x5c6938], ebx
call fcn.00574f80
cdq
mov ecx, 0x1b
mov esi, dword [0x59a75c]
idiv ecx
xor eax, eax
mov edi, edx
lea edx, [esp + 0x18]
sub esi, edx
lea ecx, [esp + eax + 0x18]
inc eax
cmp eax, 0xf
mov dl, byte [esi + ecx]
not dl
mov byte [ecx], dl
jb 0x407139
mov eax, dword [0x5b720c]
push 0
push 0x20000080
push 3
mov ecx, dword [eax]
lea eax, [edi + 1]
push 0
push 1
mov dl, byte [ecx]
mov ecx, 0xa
mov byte [esp + 0x2c], dl
xor edx, edx
div ecx
push closesocket
add dl, 0x30
add al, 0x30
mov byte [esp + 0x39], dl
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x3c], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4071a2
call fcn.00574f80
mov dword [edi*4 + 0x5b7270], eax
jmp 0x4071c0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
not eax
sub eax, 0x12d687
push esi
mov dword [edi*4 + 0x5b7270], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x38]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, ebp
cmp esi, ebp
jbe 0x4071e2
cmp byte [esi], 0x2e
je 0x4071e7
dec esi
cmp esi, ebp
ja 0x4071d8
cmp byte [esi], 0x2e
jne 0x407210
mov eax, dword [0x59a7a0]
inc esi
test eax, eax
mov edi, 0x59a7a0
je 0x407210
mov eax, dword [edi]
push esi
push eax
call fcn.00580950
add esp, 8
test eax, eax
je 0x40724c
mov eax, dword [edi + 8]
add edi, 8
test eax, eax
jne 0x4071f6
xor eax, eax
sub eax, 5
je 0x40727c
dec eax
je 0x407251
dec eax
jne 0x4072b3
push 0x20
call fcn.00401290
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x30], 2
je 0x4072a7
mov ecx, esi
call fcn.00406ce0
mov dword [esi], 0x5893b8
jmp 0x4072a9
mov eax, dword [edi + 4]
jmp 0x407212
push 0x20
call fcn.00401290
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x30], 1
je 0x4072a7
mov ecx, esi
call fcn.00406ce0
mov dword [esi], 0x58938c
jmp 0x4072a9
push 0x20
call fcn.00401290
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x30], 0
je 0x4072a7
mov ecx, esi
call fcn.00406ce0
mov dword [esi], 0x589360
jmp 0x4072a9
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
mov ebx, esi
mov cl, byte [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ebp
mov byte [ebx + 0xc], cl
mov dword [ebx + 8], edx
mov byte [ebx + 0xd], 0
call fcn.00413eb0
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [eax + 8]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4072f7
mov ecx, dword [str.Null_Pointer]
push ecx
push 0xc9
push str..core_hashtable.h
call fcn.00401090
add esp, 0xc
mov ecx, dword [esi]
mov eax, 1
shl eax, cl
dec eax
and eax, ebp
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
lea edi, [eax + edx*4]
mov eax, dword [eax + edx*4 + 4]
test eax, eax
je 0x40734e
push 0
call fcn.00535470
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40733c
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
jmp 0x407353
xor eax, eax
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
jmp 0x407353
mov dword [edi], ebp
mov dword [edi + 4], ebx
mov edi, dword [esi + 8]
push ebp
inc edi
mov ecx, ebx
mov dword [esi + 8], edi
call fcn.00407f70
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x1c], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebx + 0x18], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [edx + 0x1c], ebx
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], ebx
mov eax, dword [0x5c693c]
inc eax
cmp eax, 0x64
mov dword [0x5c693c], eax
jbe 0x407410
mov dword [0xab5b5c], 0
mov edi, 0xab5b60
mov eax, 0x5a8f40
mov dword [esp + 0x3c], 0x10
xor edx, edx
mov esi, eax
mov eax, dword [esi]
test eax, 0x40000000
je 0x4073ed
mov ebp, 1
mov ecx, edx
shl ebp, cl
test dword [edi], ebp
setne cl
test eax, eax
jns 0x4073d4
test cl, cl
sete cl
test cl, cl
je 0x4073ed
mov ebp, 1
mov cl, al
mov eax, dword [0xab5b5c]
shl ebp, cl
or eax, ebp
mov dword [0xab5b5c], eax
inc edx
add esi, 4
cmp edx, 5
jb 0x4073b4
mov ecx, dword [esp + 0x3c]
add edi, 4
dec ecx
mov eax, esi
mov dword [esp + 0x3c], ecx
jne 0x4073b0
mov dword [0x5c693c], 0
mov eax, dword [esp + 0x38]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc