Function at 0x543a10
Capabilities:
Delete file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, 0x25f0
call fcn.006ab750
mov ecx, dword [esp + 0x260c]
mov edx, dword [esp + 0x2610]
push ebx
test ecx, ecx
push ebp
sete al
test al, al
push esi
mov esi, dword [esp + 0x2604]
push edi
mov byte [esp + 0x16], al
jne 0x543a50
mov eax, dword [ecx]
test eax, eax
je 0x543a50
mov byte [eax], 0
mov dword [ecx + 4], 0
test edx, edx
je 0x543a5a
mov dword [edx], 0
mov eax, dword [esi]
fldz
mov edx, dword [eax + 0x24]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call edx
mov eax, dword [esp + 0x260c]
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x3ec]
mov dword [esp + 0x1c], eax
call fcn.00558ad0
mov edx, edi
push str.HTTPS
push edx
call fcn.006adcb9
mov ebp, dword [esp + 0x20]
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
lea eax, [esp + 0x2e0]
and edi, 0xfffffe95
push eax
add edi, 0x1bb
push 0x706ad8
cmp edi, 0x1bb
push ebp
sete bl
call fcn.0057d450
add ebp, eax
cmp byte [ebp], 0x3a
jne 0x543afe
cmp byte [ebp], 0
je 0x543ada
add ebp, 1
lea ecx, [esp + 0x4f0]
push ecx
push ebp
mov dl, 0x2f
call fcn.0057d530
lea edx, [esp + 0x4f0]
push edx
add ebp, eax
call fcn.0069e33e
add esp, 4
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test al, al
je 0x543b24
mov eax, dword [esp + 0x2604]
mov dword [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25f0
ret 0x24
lea esi, [esp + 0x80]
call fcn.0054d5b0
mov ecx, dword [esp + 0x2608]
push 0x4e20
push edi
mov eax, esi
push eax
push ecx
lea ecx, [esp + 0x2f0]
lea esi, [esp + 0x28]
call fcn.00499d40
mov eax, dword [esp + 0x18]
test eax, eax
je 0x543b67
mov edi, dword [esp + 0x2604]
mov dword [edi], eax
jmp 0x5440ab
test bl, bl
je 0x543b8d
lea esi, [esp + 0x80]
call fcn.0054dcc0
test al, al
jne 0x543b8d
mov edi, dword [esp + 0x2604]
mov dword [edi], 2
jmp 0x5440ab
mov edi, dword [esp + 0x2608]
fld qword [0x723640]
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call eax
push 0x1000
call fcn.0069c0de
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x543bc6
mov dword [esp + 0x28], ebx
jmp 0x543bd0
mov byte [eax], bl
mov dword [esp + 0x28], 0x1000
mov ecx, dword [esp + 0x2614]
mov ecx, dword [ecx]
cmp ecx, ebx
mov dword [esp + 0x24], ebx
je 0x543be5
cmp byte [ecx], bl
jne 0x543bec
mov esi, 0x6bc0ce
jmp 0x543bf1
mov esi, 0x6ce230
mov edx, dword [esp + 0x2610]
mov eax, dword [edx]
cmp eax, ebx
je 0x543c07
cmp byte [eax], bl
mov edx, 0x706bd4
jne 0x543c0c
mov edx, 0x6bc0ce
cmp ecx, ebx
jne 0x543c15
mov ecx, 0x6bc0ce
cmp eax, ebx
jne 0x543c1e
mov eax, 0x6bc0ce
push esi
push ecx
lea ecx, [esp + 0x2e8]
push ecx
push eax
push edx
push ebp
push str.GET__s_s_s_HTTP_1.0_r_nHost:__s_r_n_s_s_r_n
lea eax, [esp + 0x3c]
call fcn.00552e70
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
cmp ecx, ebx
jne 0x543c49
mov ecx, 0x6bc0ce
mov eax, dword [esp + 0x24]
lea edx, [eax + 0x4e20]
push edx
push ecx
push edi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x90]
call fcn.0054d6a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x543c7d
mov edi, dword [esp + 0x2604]
mov dword [edi], eax
jmp 0x54409e
lea eax, [esp + 0x80]
push eax
mov ebp, edi
xor ebx, ebx
push ebp
lea ecx, [esp + 0x54]
push ecx
mov edi, 0x4e20
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00499e50
mov eax, dword [eax]
cmp eax, ebx
je 0x543ccf
mov edi, dword [esp + 0x2604]
mov dword [edi], eax
mov edx, dword [esp + 0x2c]
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x24]
add esp, 4
push eax
jmp 0x5440a3
mov edx, dword [ebp]
fld qword [0x723610]
mov eax, dword [edx + 0x24]
sub esp, 8
mov ecx, ebp
fstp qword [esp]
call eax
mov esi, dword [esp + 0x2c]
cmp esi, ebx
jne 0x543cf2
mov esi, 0x6bc0ce
call fcn.00542470
mov ecx, eax
mov eax, dword [esp + 0x2620]
cmp eax, ebx
mov dword [esp + 0x4c], ecx
je 0x543d0a
mov dword [eax], ecx
cmp byte [esp + 0x16], bl
je 0x543e88
cmp ecx, 0xc8
jl 0x543d28
cmp ecx, 0x12c
jl 0x543e88
cmp byte [esp + 0x2624], bl
je 0x543def
add ecx, 0xfffffed4
cmp ecx, 0x63
ja 0x543def
mov ecx, dword [str.Location:]
mov edx, dword [0x706c04]
mov ax, word [0x706c08]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x58], edx
push ebp
lea edx, [esp + 0x20]
mov word [esp + 0x60], ax
push edx
mov edi, 0x2710
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00499e50
lea eax, [esp + 0x38]
call fcn.00552c00
test al, al
jne 0x543de2
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x543da5
mov eax, 0x6bc0ce
push 9
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.006addf9
add esp, 0xc
test eax, eax
je 0x543e01
lea edx, [esp + 0x80]
push edx
push ebp
lea eax, [esp + 0x20]
push eax
mov edi, 0x2710
lea eax, [esp + 0x44]
call fcn.00499e50
lea eax, [esp + 0x38]
call fcn.00552c00
test al, al
je 0x543d98
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0069c8fa
add esp, 4
mov edi, dword [esp + 0x2604]
mov dword [edi], 2
jmp 0x544091
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x543e0e
mov eax, 0x6bc0ce
cmp byte [eax + 9], 0x20
lea edi, [eax + 9]
jne 0x543e1f
add edi, 1
cmp byte [edi], 0x20
je 0x543e17
lea esi, [esp + 0x80]
call fcn.00499be0
fld qword [0x723610]
mov edx, dword [esp + 0x2624]
fstp qword [esp + 0x6c]
mov eax, dword [esp + 0x2618]
fld qword [0x723960]
push edx
fstp qword [esp + 0x78]
push eax
push edi
mov edi, dword [esp + 0x2610]
lea edx, [esp + 0x70]
mov ecx, edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], 0x6dbc50
call fcn.00541e10
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x68], 0x70c5e4
call fcn.0069c8fa
add esp, 4
jmp 0x543cb8
or ebx, 0xffffffff
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0x2608]
lea eax, [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov edi, 0x4e20
lea eax, [esp + 0x38]
call fcn.00499e50
mov ebp, dword [eax]
test ebp, ebp
mov eax, dword [esp + 0x2c]
jne 0x543f5f
test eax, eax
jne 0x543eca
mov eax, 0x6bc0ce
push 0x10
push str.Content_Length:
push eax
call fcn.006addf9
mov esi, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x543efc
test esi, esi
mov eax, esi
jne 0x543eed
mov eax, 0x6bc0ce
add eax, 0x10
call fcn.005534e0
mov ebx, eax
mov byte [esp + 0x17], 1
test esi, esi
je 0x543f05
cmp byte [esi], 0
jne 0x543e90
mov ecx, dword [esp + 0x2608]
fld qword [0x723cb0]
mov edx, dword [ecx]
fst qword [esp + 0x38]
mov eax, dword [edx + 0x24]
sub esp, 8
fstp qword [esp]
call eax
or edi, 0xffffffff
cmp byte [esp + 0x16], 0
mov dword [esp + 0x1c], edi
je 0x543f7b
mov ecx, dword [esp + 0x2618]
push 0x3e8
push ecx
lea esi, [esp + 0x24]
call fcn.004971b0
cmp dword [esp + 0x1c], edi
jne 0x543f7b
mov edi, dword [esp + 0x2604]
mov dword [edi], 2
jmp 0x543cb8
mov edi, dword [esp + 0x2604]
push eax
mov dword [edi], ebp
call fcn.0069c8fa
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
jmp 0x5440a3
cmp byte [esp + 0x17], 0
je 0x543f98
mov ecx, ebx
test ecx, ecx
mov dword [esp + 0x48], ecx
fild dword [esp + 0x48]
jge 0x543f9e
fadd qword [0x7235b8]
jmp 0x543f9e
fld qword [0x723ca8]
test ebx, ebx
fmul qword [0x723ca0]
fadd qword [0x723600]
fdivr qword [0x723c98]
fstp qword [esp + 0x50]
jbe 0x54405a
lea esp, [esp]
mov edi, 0x2000
cmp ebx, edi
mov dword [esp + 0x18], 0
jae 0x543fd3
mov edi, ebx
mov ecx, dword [esp + 0x2608]
push 0x9c40
lea edx, [esp + 0x5fc]
push edx
lea eax, [esp + 0x88]
push eax
push ecx
lea edx, [esp + 0x8c]
push edx
lea esi, [esp + 0x2c]
call fcn.0054e330
cmp byte [esp + 0x16], 0
mov ebp, dword [eax]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x5f8]
je 0x5440c6
push 0
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x48], edi
je 0x5440db
lea esi, [esp + 0x1c]
call fcn.0068cf60
mov ebp, 2
cmp byte [esp + 0x16], 0
je 0x544061
mov eax, dword [esp + 0x2618]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esp + 0x16], 0
jne 0x544078
mov eax, dword [esp + 0x4c]
cmp eax, 0xc8
jl 0x544073
cmp eax, 0x12c
jl 0x544078
mov ebp, 2
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x2604]
mov dword [edi], ebp
je 0x544091
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0069c8fa
add esp, 4
mov edx, dword [esp + 0x20]
push edx
call fcn.0069c8fa
add esp, 4
lea esi, [esp + 0x80]
call fcn.00499ba0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25f0
ret 0x24
mov eax, dword [esp + 0x261c]
push edx
mov byte [esp + ecx + 0x5fc], 0
call fcn.00552d80
test ebp, ebp
jne 0x544130
fld qword [esp + 0x50]
sub ebx, edi
fadd qword [esp + 0x38]
fst qword [esp + 0x38]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x54410d
fstp st(0)
fld qword [0x723c00]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x54410d
fstp st(0)
jmp 0x54410f
fstp st(1)
mov ecx, dword [esp + 0x2608]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
sub esp, 8
fstp qword [esp]
call edx
test ebx, ebx
ja 0x543fc0
jmp 0x54405a
cmp ebp, 2
jne 0x544045
cmp byte [esp + 0x17], 0
jne 0x544045
xor ebp, ebp
jmp 0x54405a