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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bb75
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1398
call fcn.00508c20
mov eax, dword [0x72400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x54]
mov esi, dword [ebp + 0x58]
mov dword [ebp - 0x1380], eax
mov dword [ebp - 0x1384], ecx
mov dword [ebp - 0x1388], esi
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x42c5d7
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], edx
jb 0x42c5e9
mov eax, dword [ecx]
jmp 0x42c5eb
mov eax, ecx
push dword [ebp - 0x136c]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.00409230
mov eax, dword [esi]
lea edx, [ebp + 8]
push 0x70fec0
lea ecx, [ebp - 0x44]
mov dword [esi + 4], eax
call fcn.0041c210
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0041c150
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x42c644
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004120a0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x8000080
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x136c], esi
cmp esi, 0xffffffff
jne 0x42c712
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42c68e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x42c6b7
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004120a0
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x42c6e0
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004120a0
xor eax, eax
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
cmp eax, 0x10
jb 0x42ca01
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.00408600
jmp 0x42ca01
lea eax, [ebp - 0x1390]
mov dword [ebp - 0x1390], 0
push eax
push esi
mov dword [ebp - 0x138c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x138c], 0
jl 0x42c7f4
jg 0x42c754
mov eax, dword [ebp - 0x1390]
cmp eax, 0x7fffffff
jbe 0x42c7fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42c770
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x42c799
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004120a0
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x42c7c2
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004120a0
xor eax, eax
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
cmp eax, 0x10
jb 0x42ca01
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.00408600
jmp 0x42ca01
mov eax, dword [ebp - 0x1390]
mov dword [ebp - 0x1364], 0
mov dword [ebp - 0x1360], 0
mov dword [ebp - 0x135c], 0
push eax
lea ecx, [ebp - 0x1364]
mov byte [ebp - 4], 7
call fcn.0041bd90
mov dword [ebp - 4], 6
lea eax, [ebp - 0x1394]
mov edi, dword [ebp - 0x1360]
mov ebx, dword [ebp - 0x1364]
sub edi, ebx
push 0
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x1394], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x42c8ac
mov byte [ebp - 4], 9
lea edx, [ebp - 0x139c]
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
push edx
cmovae eax, dword [ebp + 0x38]
push ecx
push eax
lea ecx, [ebp - 0x1348]
mov dword [ebp - 0x139c], 0
mov dword [ebp - 0x1398], 0
call fcn.00429b70
push ecx
push edi
push ebx
lea ecx, [ebp - 0x1348]
call fcn.0042a5e0
sub esp, 8
mov dword [ebp - 4], 6
mov edx, edi
mov ecx, ebx
call fcn.0043d310
mov edi, eax
add esp, 8
mov dword [ebp - 0x1368], edi
test edi, edi
je 0x42c9d6
cmp dword [edi], 1
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x134c], 0
je 0x42c902
mov dword [0x728564], 0x80000
jmp 0x42c927
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x134c]
push eax
push ecx
mov ecx, dword [edi + 4]
push str.email_address
call fcn.0043d100
mov dword [0x728564], eax
test eax, eax
je 0x42c947
cmp dword [edi], 2
mov ecx, edi
sete al
test al, al
je 0x42c93d
call fcn.00441250
jmp 0x42c9d6
call fcn.0043d410
jmp 0x42c9d6
mov dword [ebp - 0x1358], 0
mov dword [ebp - 0x1354], 0
mov dword [ebp - 0x1350], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1358]
push dword [ebp - 0xc4]
call fcn.0041bd90
mov dword [ebp - 4], 0xb
mov esi, dword [ebp - 0x1354]
mov ebx, dword [ebp - 0x1358]
sub esi, ebx
cmp dword [edi], 1
je 0x42c9a0
mov dword [0x728564], 0x80000
jmp 0x42c9ba
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x134c]
call fcn.0043d1e0
mov dword [0x728564], eax
test eax, eax
je 0x42ca28
cmp dword [edi], 2
mov ecx, edi
sete al
test al, al
je 0x42ca21
call fcn.00441250
lea ecx, [ebp - 0x1358]
call fcn.0040fff0
lea ecx, [ebp - 0x1364]
call fcn.0040fff0
lea ecx, [ebp - 0x2c]
call fcn.0040f850
lea ecx, [ebp + 8]
call fcn.0040f850
lea ecx, [ebp + 0x20]
call fcn.0040f850
lea ecx, [ebp + 0x38]
call fcn.00406f20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ce564
mov esp, ebp
pop ebp
ret 0x54
call fcn.0043d410
jmp 0x42c9cb
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
push esi
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.00407f60
mov dword [ebp - 4], 0xe
cmp dword [edi], 1
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x134c], 0
je 0x42ca74
mov dword [0x728564], 0x80000
jmp 0x42ca99
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x134c]
push eax
push ecx
mov ecx, dword [edi + 4]
push str.outlook_version
call fcn.0043d100
mov dword [0x728564], eax
test eax, eax
je 0x42cac9
cmp dword [edi], 2
mov ecx, edi
sete al
test al, al
je 0x42cab7
call fcn.00441250
lea ecx, [ebp - 0x5c]
call fcn.00406f20
jmp 0x42c9cb
call fcn.0043d410
lea ecx, [ebp - 0x5c]
call fcn.00406f20
jmp 0x42c9cb
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1358]
push dword [ebp - 0xc4]
call fcn.0041bd90
mov dword [ebp - 4], 0xe
mov esi, dword [ebp - 0x1354]
mov ebx, dword [ebp - 0x1358]
sub esi, ebx
cmp dword [edi], 1
je 0x42cb04
mov dword [0x728564], 0x80000
jmp 0x42ca99
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x134c]
call fcn.0043d1e0
mov dword [0x728564], eax
test eax, eax
jne 0x42ca99
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x8c], ax
shr esi, 1
lea ecx, [ebp - 0x8c]
push esi
push ebx
mov byte [ebp - 4], 0x13
call fcn.0040f5c0
cmp dword [edi], 1
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x134c], 0
je 0x42cb6b
mov dword [0x728564], 0x80000
jmp 0x42cb90
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x134c]
push eax
push ecx
mov ecx, dword [edi + 4]
push str.outlook_platform
call fcn.0043d100
mov dword [0x728564], eax
test eax, eax
je 0x42cbd6
cmp dword [edi], 2
mov ecx, edi
sete al
test al, al
je 0x42cbb9
call fcn.00441250
lea ecx, [ebp - 0x8c]
call fcn.0040f850
lea ecx, [ebp - 0x5c]
call fcn.00406f20
jmp 0x42c9cb
call fcn.0043d410
lea ecx, [ebp - 0x8c]
call fcn.0040f850
lea ecx, [ebp - 0x5c]
call fcn.00406f20
jmp 0x42c9cb
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1358]
push dword [ebp - 0xc4]
call fcn.0041bd90
mov dword [ebp - 4], 0x13
mov esi, dword [ebp - 0x1354]
mov ebx, dword [ebp - 0x1358]
sub esi, ebx
cmp dword [edi], 1
je 0x42cc14
mov dword [0x728564], 0x80000
jmp 0x42cb90
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x134c]
call fcn.0043d1e0
mov dword [0x728564], eax
test eax, eax
jne 0x42cb90
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], eax
mov word [ebp - 0xa4], ax
shr esi, 1
lea ecx, [ebp - 0xa4]
push esi
push ebx
mov byte [ebp - 4], 0x16
call fcn.0040f5c0
push 0x710c7c
lea ecx, [ebp - 0x44]
call fcn.00407af0
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x13a8]
push eax
call fcn.0042d060
lea ecx, [ebp - 0x44]
call fcn.00406f20
mov dword [ebp - 0x1378], 0
mov dword [ebp - 0x1374], 0
mov dword [ebp - 0x1370], 0
mov byte [ebp - 4], 0x1a
xor ebx, ebx
mov ecx, dword [ebp - 0x13a4]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x13a8]
sub ecx, esi
imul ecx
mov dword [ebp - 0x137c], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x42ceba
lea eax, [ebx + ebx*2]
lea ebx, [esi + eax*8]
push 0
push 0x71083c
mov ecx, ebx
call fcn.00407a50
mov esi, eax
cmp esi, 0xffffffff
je 0x42ceae
test esi, esi
je 0x42ceae
cmp dword [ebx + 0x10], 1
jbe 0x42ceae
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x42cd2a
mov eax, dword [ebx]
jmp 0x42cd2c
mov eax, ebx
lea edx, [eax + esi]
cmp ecx, 0x10
jb 0x42cd38
mov eax, dword [ebx]
jmp 0x42cd3a
mov eax, ebx
push edx
push eax
lea ecx, [ebp - 0x44]
call fcn.004123d0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 0x1c
cmp dword [ebx + 0x14], 0x10
jb 0x42cd64
mov eax, dword [ebx]
jmp 0x42cd66
mov eax, ebx
inc eax
mov ecx, ebx
add esi, eax
lea eax, [ebp - 0x1398]
push eax
call fcn.00410820
lea ecx, [ebp - 0x74]
push dword [eax]
push esi
call fcn.004123d0
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
cmovae esi, dword [ebp - 0x74]
call fcn.004ec905
push 0xa
mov dword [eax], 0
lea eax, [ebp - 0x136c]
push eax
push esi
call fcn.004ec6e5
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x136c]
jne 0x42cdc2
push str.invalid_stoi_argument
call fcn.004cf675
call fcn.004ec905
cmp dword [eax], 0x22
je 0x42ce7d
lea eax, [ebx - 0x17fba]
mov dword [ebp - 4], 0x1c
cmp eax, 3
ja case.default.0x42cde2
jmp dword [eax*4 + 0x42d04c]
mov dword [ebp - 0x134c], 0x17fba
jmp 0x42ce17
mov dword [ebp - 0x134c], 0x17fbb
jmp 0x42ce17
mov dword [ebp - 0x134c], 0x17fbc
jmp 0x42ce17
mov dword [ebp - 0x134c], 0x17fbd
lea eax, [ebp - 0x134c]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xc0]
call fcn.004090d0
add esp, 4
push eax
lea ecx, [ebp - 0x1378]
mov byte [ebp - 4], 0x1f
call fcn.00407690
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb case.default.0x42cde2
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.00408600
lea ecx, [ebp - 0x74]
call fcn.00406f20
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1a
call fcn.00406f20
mov ebx, dword [ebp - 0x137c]
inc ebx
jmp 0x42ccaa
push str.stoi_argument_out_of_range
call fcn.004cf6b5
mov eax, 0x42ce8d
ret
mov ebx, dword [ebp - 0x137c]
inc ebx
jmp 0x42ccaa
test edi, edi
je 0x42ced1
cmp dword [edi], 2
sete al
test al, al
je 0x42ced1
mov ecx, edi
call fcn.00441250
jmp 0x42ced8
mov ecx, edi
call fcn.0043d410
mov ecx, dword [ebp - 0x1380]
lea edx, [ebp - 0x8c]
call fcn.00418610
mov ecx, dword [ebp - 0x1384]
lea edx, [ebp - 0xa4]
call fcn.00418610
mov edx, dword [ebp - 0x1388]
lea eax, [ebp - 0x1378]
cmp edx, eax
je 0x42cf3e
mov ecx, dword [edx]
mov eax, dword [ebp - 0x1378]
mov dword [edx], eax
mov eax, dword [ebp - 0x1374]
mov dword [ebp - 0x1378], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1370]
mov dword [ebp - 0x1374], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 0x1370], ecx
lea ecx, [ebp - 0x1378]
call fcn.00407630
lea ecx, [ebp - 0x13a8]
call fcn.004073e0
lea ecx, [ebp - 0xa4]
call fcn.0040f850
lea ecx, [ebp - 0x8c]
call fcn.0040f850
lea ecx, [ebp - 0x5c]
call fcn.00406f20
lea ecx, [ebp - 0x1358]
call fcn.0040fff0
lea ecx, [ebp - 0x1364]
call fcn.0040fff0
lea ecx, [ebp - 0x2c]
call fcn.0040f850
lea ecx, [ebp + 8]
call fcn.0040f850
lea ecx, [ebp + 0x20]
call fcn.0040f850
lea ecx, [ebp + 0x38]
call fcn.00406f20
mov al, 1
jmp 0x42ca03