Function at 0x4c3220
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x5bea58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
xor eax, eax
mov dword [ebp], 0
push edi
mov ebx, ecx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], eax
call fcn.005201a0
lea ecx, [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.004be990
mov esi, eax
cmp esi, 0x6ad104
je 0x4c32ce
mov ecx, 0x6ad104
call fcn.00449550
mov ecx, dword [esi]
mov dword [0x6ad104], ecx
mov ecx, dword [esi + 4]
mov dword [0x6ad108], ecx
mov eax, dword [esi + 8]
mov dword [0x6ad10c], eax
mov eax, dword [esi + 0xc]
mov dword [0x6ad110], eax
mov eax, dword [esi + 0x10]
mov dword [0x6ad114], eax
mov eax, dword [esi + 0x14]
mov dword [0x6ad118], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x4c3308
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c32fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c3b8a
push ecx
push edx
call fcn.00583877
add esp, 8
cmp dword [0x6ad114], 3
jae 0x4c3316
call fcn.004c3150
push 0xc
push str.contacts.csv
mov ecx, 0x6ad104
call fcn.0044bde0
cmp dword [0x6ad118], 8
mov eax, 0x6ad104
push 0
cmovae eax, dword [0x6ad104]
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c3b3e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov edi, eax
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x4c338b
cmp dword [ebp + 0x14], 8
lea ecx, [ebp]
mov dword [ebp + 0x10], eax
cmovae ecx, dword [ebp]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4c3398
sub eax, ecx
lea ecx, [ebp]
push 0
push eax
call fcn.004497f0
cmp dword [ebp + 0x14], 8
lea ecx, [ebp - 0x80]
push 0
push ecx
lea eax, [ebp]
cmovae eax, dword [ebp]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 1
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp + 0x5c], 0x5dd8e0
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x60], 0x5dd8e2
push eax
call fcn.0044f960
lea edx, [ebp]
lea ecx, [ebp + 0x30]
call fcn.0044cf20
mov eax, dword [ebp + 0x34]
add esp, 0x18
mov esi, dword [ebp + 0x30]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 6
jb 0x4c3b1a
push 1
sub esp, 0x14
mov dword [ebp + 0x5c], 0x5ef11c
mov ecx, esp
mov dword [ebp + 0x60], 0x5ef11e
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x70], ecx
push eax
call fcn.0044f960
lea edx, [esi + 0x18]
lea ecx, [ebp - 0x6c]
call fcn.0044cf20
mov esi, dword [ebp + 0x30]
lea eax, [ebp + 0x5c]
add esp, 0x18
mov dword [ebp + 0x5c], 0x5ef11c
mov dword [ebp + 0x60], 0x5ef11e
push 1
sub esp, 0x14
mov ecx, esp
mov dword [ebp + 0x70], ecx
push eax
call fcn.0044f960
lea edx, [esi + 0x78]
lea ecx, [ebp + 0x18]
call fcn.0044cf20
mov esi, dword [ebp + 0x30]
lea eax, [ebp + 0x5c]
add esp, 0x18
mov dword [ebp + 0x5c], 0x5ef11c
mov dword [ebp + 0x60], 0x5ef11e
push 1
sub esp, 0x14
mov ecx, esp
mov dword [ebp + 0x70], ecx
push eax
call fcn.0044f960
lea edx, [esi + 0x90]
lea ecx, [ebp + 0x24]
call fcn.0044cf20
mov ecx, dword [ebx + 0x2834]
add ebx, 0x2834
add esp, 0x18
mov dword [ebp + 0x70], ebx
mov edx, dword [ebx + 4]
cmp ecx, edx
je 0x4c3514
push ecx
call fcn.004cb520
mov eax, dword [ebx]
add esp, 4
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 1
jb 0x4c3b1a
xor edi, edi
mov dword [ebp + 0x4c], edi
add eax, 0xffffffff
je 0x4c3a39
xor edx, edx
mov dword [ebp - 0x74], 0x5ef118
mov dword [ebp - 0x70], 0x5ef11a
mov dword [ebp + 0x48], edx
nop
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
push 1
sub esp, 0x14
mov byte [ebp - 4], 6
lea esi, [edx + ecx]
mov ecx, esp
lea eax, [ebp - 0x74]
mov dword [ebp + 0x58], ecx
push eax
call fcn.0044f960
mov edx, esi
lea ecx, [ebp + 0x3c]
call fcn.0044cf20
mov eax, dword [ebp + 0x40]
add esp, 0x18
mov ecx, dword [ebp + 0x3c]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 2
jb 0x4c3afa
lea eax, [ecx + 0x18]
lea edx, [ebp - 0x48]
cmp edx, eax
je 0x4c35f1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4c35e4
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004496e0
mov ecx, dword [ebp + 0x3c]
lea eax, [ebp - 0x30]
cmp eax, ecx
je 0x4c360d
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c3603
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.004496e0
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [ebp + 0x54], 0
add eax, 0xffffffff
je 0x4c39ca
xor ebx, ebx
mov dword [ebp - 0x7c], 0x5ef118
mov dword [ebp - 0x78], 0x5ef11a
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
add ebx, ecx
lea ecx, [ebp - 0x5c]
push eax
call fcn.0044f960
sub esp, 0x18
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 0x58], esp
sub esp, 0x14
mov esi, esp
lea edi, [esi + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi], 0
cmp eax, 8
ja 0x4c3692
lea ecx, [ebp - 0x5c]
jmp 0x4c36b2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00583e4c
mov dword [esi], eax
add esp, 4
mov ecx, dword [ebp - 0x5c]
mov esi, eax
mov eax, dword [edi]
add eax, eax
push eax
push ecx
push esi
call fcn.005854c0
mov ecx, dword [ebp + 0x58]
add esp, 0xc
mov edx, 1
call fcn.0044f9e0
add esp, 0x14
lea ecx, [ebp + 0x64]
mov edx, ebx
call fcn.0044faf0
add esp, 0x18
mov byte [ebp - 4], 7
cmp dword [ebp - 0x4c], 8
jbe 0x4c36f8
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4c36f8
push eax
call fcn.005838d8
add esp, 4
mov ebx, dword [ebp + 0x68]
mov eax, ebx
mov esi, dword [ebp + 0x64]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 9
jb 0x4c3a40
cmp dword [ebp - 0x34], 8
lea ecx, [esi + 0x48]
mov eax, dword [ecx + 0x10]
lea edx, [ebp - 0x48]
cmovae edx, dword [ebp - 0x48]
cmp dword [ecx + 0x14], 8
jb 0x4c372d
mov ecx, dword [ecx]
cmp eax, dword [ebp - 0x38]
jne 0x4c3743
push eax
call fcn.00450520
add esp, 4
test eax, eax
jne 0x4c3743
mov al, 1
jmp 0x4c3745
xor al, al
test al, al
je 0x4c38d6
lea ecx, [ebp - 0x158]
call fcn.004c3bc0
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x64]
cmp ecx, eax
je 0x4c377e
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4c376e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 0x18]
lea edx, [ebp - 0x140]
cmp edx, ecx
je 0x4c37a6
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c3796
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0x140]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 0x30]
lea edx, [ebp - 0x128]
cmp edx, ecx
je 0x4c37ce
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c37be
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0x128]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 0x60]
lea edx, [ebp - 0xf8]
cmp edx, ecx
je 0x4c37f6
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c37e6
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0xf8]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 0x78]
lea edx, [ebp - 0xe0]
cmp edx, ecx
je 0x4c381e
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c380e
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0xe0]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 0x90]
lea edx, [ebp - 0xc8]
cmp edx, ecx
je 0x4c3849
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c3839
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 0xa8]
lea edx, [ebp - 0xb0]
cmp edx, ecx
je 0x4c3874
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x4c3864
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.004496e0
mov eax, dword [ebp + 0x64]
add eax, 0xc0
lea ecx, [ebp - 0x98]
cmp ecx, eax
je 0x4c389b
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4c388e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.004496e0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x158]
push eax
cmp ebx, dword [ebp - 0x10]
je 0x4c38bc
mov ecx, ebx
call fcn.004cc260
add ebx, 0xd8
mov dword [ebp - 0x14], ebx
jmp 0x4c38c5
push ebx
lea ecx, [ebp - 0x18]
call fcn.004cbc70
lea ecx, [ebp - 0x158]
call fcn.004c3ca0
mov ebx, dword [ebp + 0x68]
mov esi, dword [ebp + 0x64]
mov byte [ebp - 4], 6
test esi, esi
je 0x4c399a
cmp esi, ebx
je 0x4c3949
add esi, 0x14
lea esp, [esp]
mov ecx, dword [esi]
cmp ecx, 8
jb 0x4c3929
mov eax, dword [esi - 0x14]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c391f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c3b8f
mov eax, edx
push ecx
push eax
call fcn.00583877
add esp, 8
xor eax, eax
mov dword [esi - 4], 0
mov word [esi - 0x14], ax
mov dword [esi], 7
add esi, 0x18
lea eax, [esi - 0x14]
cmp eax, ebx
jne 0x4c38f0
mov esi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x6c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4c397b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c3b8f
push ecx
push esi
call fcn.00583877
add esp, 8
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 0
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
sub eax, ecx
mov edx, dword [ebp + 0x54]
mov ebx, dword [ebp + 0x50]
inc edx
sar eax, 3
add ebx, 0x18
imul eax, eax, 0xaaaaaaab
mov dword [ebp + 0x54], edx
mov dword [ebp + 0x50], ebx
dec eax
cmp edx, eax
jb 0x4c3641
mov ebx, dword [ebp + 0x70]
mov edi, dword [ebp + 0x4c]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x48]
push ecx
cmp eax, dword [ebx + 8]
je 0x4c39e6
mov edx, eax
call fcn.004cbec0
add esp, 4
add dword [ebx + 4], 0x3c
jmp 0x4c39ee
push eax
mov ecx, ebx
call fcn.004cb870
lea ecx, [ebp + 0x3c]
call fcn.004491b0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004cb3e0
lea ecx, [ebp - 0x30]
call fcn.00449550
lea ecx, [ebp - 0x48]
call fcn.00449550
mov eax, dword [ebp + 0x1c]
inc edi
mov ecx, dword [ebp + 0x18]
sub eax, ecx
mov edx, dword [ebp + 0x48]
sar eax, 3
add edx, 0x18
imul eax, eax, 0xaaaaaaab
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x48], edx
dec eax
cmp edi, eax
jb 0x4c3550
mov bl, 1
jmp 0x4c3b1c
test esi, esi
je 0x4c3afa
cmp esi, ebx
je 0x4c3aa9
add esi, 0x14
nop
mov ecx, dword [esi]
cmp ecx, 8
jb 0x4c3a89
mov eax, dword [esi - 0x14]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c3a7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c3b8f
mov eax, edx
push ecx
push eax
call fcn.00583877
add esp, 8
xor eax, eax
mov dword [esi - 4], 0
mov word [esi - 0x14], ax
mov dword [esi], 7
add esi, 0x18
lea eax, [esi - 0x14]
cmp eax, ebx
jne 0x4c3a50
mov esi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x6c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4c3adb
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c3b8f
push ecx
push esi
call fcn.00583877
add esp, 8
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 0
lea ecx, [ebp + 0x3c]
call fcn.004491b0
lea ecx, [ebp - 0x18]
call fcn.004cb3e0
lea ecx, [ebp - 0x30]
call fcn.00449550
lea ecx, [ebp - 0x48]
call fcn.00449550
xor bl, bl
lea ecx, [ebp - 0x6c]
call fcn.004491b0
lea ecx, [ebp + 0x30]
call fcn.004491b0
lea ecx, [ebp + 0x24]
call fcn.004491b0
lea ecx, [ebp + 0x18]
call fcn.004491b0
jmp 0x4c3b40
xor bl, bl
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
jb 0x4c3b76
mov edx, dword [ebp]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c3b6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c3b94
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x74]
pop ebp
ret
call fcn.00591c98
call fcn.00591c98
call fcn.00591c98
int3