Function at 0x59055380
Capabilities:
Move file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x591484a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x8d8]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x54], 0
call fcn.590b4490
add esp, 8
push 0x5919cc20
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.590994d0
push 0x5917fdf8
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 2
call fcn.590994d0
push 0x5919cc20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call fcn.590994d0
mov edx, dword [esp + 0x90c]
push 0x5919cc20
push edx
mov byte [esp + 0x54], 4
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59055442
lea eax, [esp + 0x14]
push eax
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 5
call fcn.59099f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 4
call fcn.59099e00
jmp 0x59055453
lea ecx, [esp + 0x90c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.59099f80
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s._s
push edx
call fcn.5909cc60
mov eax, dword [0x5919cca0]
add esp, 0x14
test eax, eax
je 0x590554ba
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.5909e880
mov ecx, dword [eax]
mov byte [esp + 0x4c], 6
push ecx
push str.AnalyseEmailInfoData_astrFileName:_s
push str.winncap
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 4
call fcn.5909f180
cmp dword [esp + 0x70], 3
je 0x59055591
push 0x5919cc20
lea ecx, [esp + 0x18]
call fcn.590994d0
lea edx, [esp + 0x24]
mov bl, 7
push edx
mov byte [esp + 0x50], bl
call fcn.5900d1c0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
push 0x5917fc60
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_s._s
push eax
mov byte [esp + 0x60], 8
call fcn.5909cc60
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.59099e00
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0x70]
mov ecx, 2
dec eax
je 0x59055541
dec eax
je 0x5905553a
sub eax, ecx
jne 0x59055546
mov ecx, 2
jmp 0x59055546
mov ecx, 1
push 0
push ecx
push ecx
lea eax, [esp + 0xe4]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.5909e9e0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x60], 9
call fcn.590993d0
mov ecx, esi
mov byte [esp + 0x5c], bl
call fcn.59052da0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 4
call fcn.59099e00
jmp 0x590556cd
mov eax, dword [esp + 0x10]
push 0x180
push 0x8000
push eax
xor esi, esi
call fcn.590821dd
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x590556cd
push 2
push esi
push esi
push ebp
call fcn.5908313a
add esp, 0x10
mov ebx, eax
test edx, edx
jg 0x59055617
jl 0x590555d2
cmp ebx, 0x6400000
jae 0x59055617
test edx, edx
jl 0x59055617
jg 0x590555dc
test ebx, ebx
jbe 0x59055617
lea edi, [ebx + 1]
push edi
call fcn.59080b1f
mov esi, eax
add esp, 4
test esi, esi
je 0x59055617
push 0
push 0
push ebp
call fcn.59082606
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
push ebp
call fcn.5908298b
add esp, 0x18
push ebp
call fcn.59081f0d
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x34], ecx
add esp, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [0x5919dc4c]
cmp ecx, eax
je 0x59055689
mov edi, dword [esp + 0x8f8]
mov ecx, dword [esp + 0x8fc]
mov edx, edi
or edx, ecx
je 0x59055689
mov ecx, dword [esp + 0x900]
mov edx, dword [esp + 0x904]
mov ebp, ecx
or ebp, edx
je 0x59055689
mov eax, dword [esp + 0x8fc]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov ecx, esp
push eax
mov eax, dword [esp + 0x88]
mov dword [ecx], edx
mov edx, dword [esp + 0x6c]
push eax
push ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x78]
push esi
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x80]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x44]
call fcn.590537c0
test esi, esi
je 0x590556cd
push esi
call fcn.59080a36
add esp, 4
push ecx
lea edx, [esp + 0x910]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.590993d0
mov ecx, dword [esp + 0x8dc]
mov edx, dword [esp + 0x8e0]
sub esp, 0x10
mov byte [esp + 0x60], 4
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8f4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8f8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.59054d20
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call fcn.59099e00
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
call fcn.59099e00
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call fcn.59099e00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 0
call fcn.59099e00
lea ecx, [esp + 0x90c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.59099e00
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 0x8bc