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

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x5bed2c
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp + 0x13c], 0
mov dword [ebp + 0x140], 7
mov word [ebp + 0x12c], ax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xd8]
push eax
call fcn.005025a0
mov ecx, eax
call fcn.004b0fa0
mov esi, eax
cmp esi, 0x6aaee4
je 0x4b5650
mov ecx, 0x6aaee4
call fcn.00445c30
mov ecx, dword [esi]
mov dword [0x6aaee4], ecx
mov ecx, dword [esi + 4]
mov dword [0x6aaee8], ecx
mov eax, dword [esi + 8]
mov dword [0x6aaeec], eax
mov eax, dword [esi + 0xc]
mov dword [0x6aaef0], eax
mov eax, dword [esi + 0x10]
mov dword [0x6aaef4], eax
mov eax, dword [esi + 0x14]
mov dword [0x6aaef8], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp + 0xec]
cmp edx, 8
jb 0x4b5690
mov ecx, dword [ebp + 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b5686
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5ed6
push edx
push ecx
call fcn.0056eec5
add esp, 8
cmp dword [0x6aaef4], 3
jae 0x4b569e
call fcn.004b52a0
push 0xc
push str.contacts.csv
mov ecx, 0x6aaee4
call fcn.00448340
cmp dword [0x6aaef8], 8
mov eax, 0x6aaee4
push 0
cmovae eax, dword [0x6aaee4]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b5e73
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x13c]
mov edi, eax
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x4b5722
cmp dword [ebp + 0x140], 8
lea ecx, [ebp + 0x12c]
mov dword [ebp + 0x13c], eax
cmovae ecx, dword [ebp + 0x12c]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4b5732
sub eax, ecx
lea ecx, [ebp + 0x12c]
push 0
push eax
call fcn.00445e00
cmp dword [ebp + 0x140], 8
lea ecx, [ebp - 0x90]
push 0
push ecx
lea eax, [ebp + 0x12c]
cmovae eax, dword [ebp + 0x12c]
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 - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push 1
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x18], 0x5e2f34
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0x5e2f36
push eax
call fcn.0044d020
lea edx, [ebp + 0x12c]
lea ecx, [ebp - 0x3c]
call fcn.0044a420
mov ecx, dword [ebp - 0x38]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x3c]
add esp, 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 6
jb 0x4b5e4b
push 1
sub esp, 0x14
mov dword [ebp - 0x18], 0x5f3760
mov ecx, esp
mov dword [ebp - 0x14], 0x5f3762
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ecx
push eax
call fcn.0044d020
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x7c]
lea edx, [edx + 0x18]
call fcn.0044a420
add esp, 0x18
mov dword [ebp - 0x18], 0x5f3760
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x5f3762
push 1
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x10], ecx
push eax
call fcn.0044d020
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x54]
lea edx, [edx + 0x78]
call fcn.0044a420
add esp, 0x18
mov dword [ebp - 0x18], 0x5f3760
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x5f3762
push 1
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x10], ecx
push eax
call fcn.0044d020
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], 0xf
lea edx, [edx + 0x90]
call fcn.0044a420
mov edi, dword [ebx + 0x2804]
add ebx, 0x2800
add esp, 0x18
mov dword [ebp - 0x10], ebx
mov esi, dword [ebx]
cmp esi, edi
je 0x4b58e0
mov edi, edi
lea ecx, [esi + 0x30]
call fcn.004bc930
lea ecx, [esi + 0x18]
call fcn.00445c30
mov ecx, esi
call fcn.00445c30
add esi, 0x3c
cmp esi, edi
jne 0x4b58c0
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x50]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x54]
imul ecx
mov dword [ebx + 4], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jb 0x4b5e4b
mov dword [ebp - 0x60], 0
add eax, 0xffffffff
je 0x4b5e6f
xor esi, esi
mov dword [ebp - 0x84], 0x5f375c
mov dword [ebp - 0x80], 0x5f375e
mov dword [ebp - 0x30], esi
lea esp, [esp]
xor eax, eax
mov dword [ebp + 0x100], 0
xor edi, edi
mov dword [ebp + 0x104], 7
mov word [ebp + 0xf0], ax
mov dword [ebp + 0x118], eax
mov dword [ebp + 0x11c], 7
mov word [ebp + 0x108], ax
mov dword [ebp + 0x120], eax
mov dword [ebp + 0x124], edi
mov dword [ebp + 0x128], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
push 1
sub esp, 0x14
mov byte [ebp - 4], 6
mov ecx, esp
lea eax, [ebp - 0x84]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.0044d020
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x70]
or dword [ebp - 0x28], 0x10
lea edx, [edx + esi]
call fcn.0044a420
mov ecx, dword [ebp - 0x6c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x70]
add esp, 0x18
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x4b5e22
lea eax, [esi + 0x18]
lea ecx, [ebp + 0xf0]
cmp ecx, eax
je 0x4b5a01
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4b59e9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0xf0]
call fcn.00445cb0
mov edi, dword [ebp + 0x124]
mov esi, dword [ebp - 0x70]
lea eax, [ebp + 0x108]
cmp eax, esi
je 0x4b5a2a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4b5a15
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x108]
push eax
call fcn.00445cb0
mov edi, dword [ebp + 0x124]
mov ecx, dword [ebp - 0x44]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x48]
imul ecx
mov dword [ebp - 0x58], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
je 0x4b5d71
xor ebx, ebx
mov dword [ebp - 0x8c], 0x5f375c
mov dword [ebp - 0x88], 0x5f375e
mov dword [ebp - 0x5c], ebx
lea ebx, [ebx]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0xdc]
call fcn.0044d020
mov eax, dword [ebp - 0x48]
or dword [ebp - 0x28], 0x20
add eax, ebx
mov dword [ebp - 0x2c], eax
sub esp, 0x18
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0xec]
mov dword [ebp - 0x64], esp
sub esp, 0x14
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi], 0
cmp eax, 8
ja 0x4b5ad4
mov edx, esi
lea ebx, [ebp + 0xdc]
jmp 0x4b5afa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f473
mov edx, eax
add esp, 4
mov eax, dword [esi + 0x10]
mov dword [esi], edx
mov ebx, dword [ebp + 0xdc]
lea ecx, [eax + eax]
push ecx
push ebx
push edx
call fcn.00586300
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov edx, 1
call fcn.0044d0a0
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add esp, 0x14
call fcn.0044d1c0
add esp, 0x18
mov byte [ebp - 4], 7
cmp dword [ebp + 0xec], 8
jbe 0x4b5b46
mov eax, dword [ebp + 0xdc]
test eax, eax
je 0x4b5b46
push eax
call fcn.0056ef26
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x24]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 9
jb 0x4b5e1a
cmp dword [ebp + 0x104], 8
lea edx, [esi + 0x48]
lea eax, [ebp + 0xf0]
mov esi, edx
cmovae eax, dword [ebp + 0xf0]
cmp dword [edx + 0x14], 8
jb 0x4b5b89
mov esi, dword [edx]
mov edx, dword [edx + 0x10]
cmp edx, dword [ebp + 0x100]
jne 0x4b5bb5
test edx, edx
je 0x4b5bb1
sub esi, eax
lea ebx, [ebx]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4b5bb5
add eax, 2
sub edx, 1
jne 0x4b5ba0
mov al, 1
jmp 0x4b5bb7
xor al, al
test al, al
je 0x4b5d32
lea ecx, [ebp]
call fcn.004b5f10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x24]
cmp ecx, eax
je 0x4b5beb
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4b5bdc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp]
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x18]
lea edx, [ebp + 0x18]
cmp edx, ecx
je 0x4b5c0e
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4b5bff
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp + 0x18]
push eax
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x30]
lea edx, [ebp + 0x30]
cmp edx, ecx
je 0x4b5c31
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4b5c22
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x60]
lea edx, [ebp + 0x60]
cmp edx, ecx
je 0x4b5c54
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4b5c45
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp + 0x60]
push eax
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x78]
lea edx, [ebp + 0x78]
cmp edx, ecx
je 0x4b5c77
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4b5c68
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp + 0x78]
push eax
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x90]
lea edx, [ebp + 0x90]
cmp edx, ecx
je 0x4b5ca3
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4b5c91
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp + 0x90]
push eax
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xa8]
lea edx, [ebp + 0xa8]
cmp edx, ecx
je 0x4b5ccf
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4b5cbd
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp + 0xa8]
push eax
call fcn.00445cb0
mov eax, dword [ebp - 0x24]
add eax, 0xc0
lea ecx, [ebp + 0xc0]
cmp ecx, eax
je 0x4b5cf7
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4b5ce8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0xc0]
call fcn.00445cb0
lea eax, [ebp]
push eax
cmp dword [ebp + 0x128], edi
je 0x4b5d18
mov ecx, edi
call fcn.004bd070
add edi, 0xd8
mov dword [ebp + 0x124], edi
jmp 0x4b5d2a
push edi
lea ecx, [ebp + 0x120]
call fcn.004bce60
mov edi, dword [ebp + 0x124]
lea ecx, [ebp]
call fcn.004b5fc0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00444a40
mov ecx, dword [ebp - 0x44]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x5c]
inc esi
imul ecx
add ebx, 0x18
mov dword [ebp - 0x58], esi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x5c], ebx
shr eax, 0x1f
dec eax
add eax, edx
cmp esi, eax
jb 0x4b5a70
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 4]
lea eax, [ebp + 0xf0]
push eax
cmp dword [ebx + 8], esi
je 0x4b5db6
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00441370
lea eax, [ebp + 0x108]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x18]
call fcn.00441370
lea eax, [ebp + 0x120]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0x30]
call fcn.004bd150
add dword [ebx + 4], 0x3c
jmp 0x4b5dbe
push esi
mov ecx, ebx
call fcn.004bcad0
lea ecx, [ebp - 0x70]
call fcn.00444a40
lea ecx, [ebp + 0x120]
mov byte [ebp - 4], 4
call fcn.004bc930
lea ecx, [ebp + 0x108]
call fcn.00445c30
lea ecx, [ebp + 0xf0]
call fcn.00445c30
mov ecx, dword [ebp - 0x50]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x60]
add dword [ebp - 0x30], 0x18
inc esi
imul ecx
mov dword [ebp - 0x60], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp esi, eax
jae 0x4b5e6f
mov esi, dword [ebp - 0x30]
jmp 0x4b5930
lea ecx, [ebp - 0x24]
call fcn.00444a40
lea ecx, [ebp - 0x70]
call fcn.00444a40
lea ecx, [ebp + 0x120]
call fcn.004bc930
lea ecx, [ebp + 0x108]
call fcn.00445c30
lea ecx, [ebp + 0xf0]
call fcn.00445c30
xor bl, bl
lea ecx, [ebp - 0x7c]
call fcn.00444a40
lea ecx, [ebp - 0x3c]
call fcn.00444a40
lea ecx, [ebp - 0x48]
call fcn.00444a40
lea ecx, [ebp - 0x54]
call fcn.00444a40
jmp 0x4b5e75
mov bl, 1
jmp 0x4b5e4d
xor bl, bl
mov edx, dword [ebp + 0x140]
cmp edx, 8
jb 0x4b5eb1
mov ecx, dword [ebp + 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b5ea7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5edb
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.0056eeb4
lea esp, [ebp + 0x148]
pop ebp
ret
call fcn.00591dc6
call fcn.00591dc6
int3