Function at 0x436f50
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x4f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x504]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x508]
mov esi, dword [eax + 0x18]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ecx
je 0x436fc8
lea ebx, [ebx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x4372e0
mov esi, dword [esi + 0x40]
cmp esi, ebx
jne 0x436fb0
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x437872
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov ebp, 7
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.00406d10
mov dword [esp + 0x4fc], ebx
mov eax, dword [esp + 0x58]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x43700f
call fcn.00441e46
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x43701e
lea eax, [esp + 0x48]
cmp word [eax + esi*2], 0x5c
je 0x43707c
lea ecx, [esp + 0x44]
push ecx
mov ebx, 0x4624bc
lea esi, [esp + 0x9c]
call fcn.00408960
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x504], 1
call fcn.00406d10
mov byte [esp + 0x4fc], 0
cmp dword [esp + 0xb0], 8
jb 0x437075
mov edx, dword [esp + 0x9c]
push edx
call fcn.004415cb
add esp, 4
xor ebx, ebx
mov ebp, 7
push 4
push str.name
lea esi, [esp + 0x84]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
call fcn.00406f80
mov ecx, dword [esp + 0x18]
mov eax, esi
push eax
mov byte [esp + 0x500], 2
call fcn.0042e4d0
mov edi, 8
mov byte [esp + 0x4fc], bl
cmp dword [esp + 0x94], edi
mov esi, eax
jb 0x4370e0
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004415cb
add esp, 4
cmp esi, ebx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
je 0x437819
mov eax, esi
lea ecx, [esp + 0x60]
call fcn.00428870
push eax
lea edx, [esp + 0x48]
push edx
lea edi, [esp + 0xa0]
mov byte [esp + 0x504], 3
call fcn.004141f0
add esp, 8
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x504], 4
call fcn.00406d10
cmp dword [esp + 0xb0], 8
jb 0x437154
mov eax, dword [esp + 0x9c]
push eax
call fcn.004415cb
add esp, 4
mov byte [esp + 0x4fc], bl
cmp dword [esp + 0x78], 8
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
jb 0x437185
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004415cb
add esp, 4
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
add eax, 0x20
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.004194f0
lea eax, [esp + 0x60]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x4fc], 5
call fcn.00428870
mov byte [esp + 0x4fc], 7
cmp dword [esp + 0x78], 0x10
jb 0x4371e4
mov edx, dword [esp + 0x64]
push edx
call fcn.004415cb
add esp, 4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x78], edi
push str.folder
mov edi, 6
lea ecx, [esp + 0xb8]
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00411070
neg eax
sbb eax, eax
inc eax
je 0x4374b9
mov eax, esi
lea ecx, [esp + 0x98]
call fcn.00428870
mov byte [esp + 0x4fc], 8
call fcn.00429e00
test eax, eax
jne 0x4372ee
lea edi, [eax + 5]
mov eax, dword [esp + 0xac]
push 0x4657d4
lea ecx, [esp + 0x9c]
call fcn.00411070
test eax, eax
jne 0x4372ee
mov esi, 8
cmp dword [esp + 0xb0], esi
jb 0x43727c
mov eax, dword [esp + 0x9c]
push eax
call fcn.004415cb
add esp, 4
cmp dword [esp + 0xcc], esi
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
jb 0x4372ab
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.004415cb
add esp, 4
mov dword [esp + 0x4fc], 0xffffffff
cmp dword [esp + 0x5c], esi
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
jb 0x437837
mov edx, dword [esp + 0x48]
push edx
jmp 0x43782f
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x436fca
mov eax, dword [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00436f50
push 0xd
push str.QTInstall.xml
lea esi, [esp + 0x68]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00406f80
mov edx, esi
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x500], 9
call fcn.00421dd0
mov edi, 8
add esp, 4
mov byte [esp + 0x4fc], 8
cmp dword [esp + 0x78], edi
mov esi, eax
jb 0x43735b
mov eax, dword [esp + 0x64]
push eax
call fcn.004415cb
add esp, 4
cmp esi, ebx
je 0x437496
lea ecx, [esp + 0x44]
call fcn.00420ff0
cmp eax, ebx
jne 0x437496
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x437382
lea eax, [esp + 0x48]
push eax
push 0x46708c
lea ecx, [esp + 0xf4]
push 0x200
push ecx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x7c]
mov word [esp + 0x4ea], bx
call fcn.0042bd40
mov byte [esp + 0x4fc], 0xa
lea eax, [esp + 0xec]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4373d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xf0]
push edx
lea esi, [esp + 0x68]
call fcn.00406f80
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x84]
mov byte [esp + 0x504], 0xb
call fcn.00406df0
cmp dword [esp + 0x78], edi
jb 0x43741f
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x94], edi
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jae 0x437443
lea edx, [esp + 0x80]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x43747c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x437452
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0x94], 8
jb 0x437496
mov edx, dword [esp + 0x80]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0xb0], 8
jb 0x4376f8
mov eax, dword [esp + 0x9c]
push eax
call fcn.004415cb
add esp, 4
jmp 0x4376f8
mov eax, dword [esp + 0x48]
mov edi, 8
cmp dword [esp + 0x5c], edi
jae 0x4374cc
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43775d
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x4374e9
lea eax, [esp + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
cmp eax, ebx
jne 0x437758
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x437509
lea eax, [esp + 0x48]
push eax
call edi
lea ecx, [esp + 0x44]
push ecx
mov ebx, str..rename
lea esi, [esp + 0x80]
call fcn.00408960
add esp, 4
mov byte [esp + 0x4fc], 0xc
mov eax, dword [esp + 0x80]
mov ebp, 8
cmp dword [esp + 0x94], ebp
jae 0x437549
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43756e
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
jae 0x43756b
lea eax, [esp + 0x80]
push eax
call edi
cmp dword [esp + 0x94], ebp
mov ecx, dword [esp + 0x80]
jae 0x437585
lea ecx, [esp + 0x80]
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x437593
lea eax, [esp + 0x48]
push ecx
push eax
call fcn.00442c18
add esp, 8
test eax, eax
je 0x4376dd
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x4375b3
lea eax, [esp + 0x48]
push eax
push 0x4670b8
lea edx, [esp + 0xf4]
push 0x200
push edx
call fcn.004414db
xor edi, edi
add esp, 0x10
lea ecx, [esp + 0x60]
mov word [esp + 0x4ea], di
call fcn.0042bd40
mov byte [esp + 0x4fc], 0xd
mov ebx, 7
lea eax, [esp + 0xec]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], di
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x437610
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf0]
push eax
lea esi, [esp + 0xa0]
call fcn.00406f80
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x68]
mov byte [esp + 0x504], 0xe
call fcn.00406df0
cmp dword [esp + 0xb0], ebp
jb 0x437665
mov edx, dword [esp + 0x9c]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x78], ebp
mov edx, dword [esp + 0x64]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], di
jae 0x437689
lea edx, [esp + 0x64]
mov ebx, dword [0x474bb0]
cmp ebx, edi
je 0x4376ca
mov eax, edx
lea esi, [eax + 2]
jmp 0x4376a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4376a0
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0x78], ebp
jb 0x4376dd
mov edx, dword [esp + 0x64]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x94], ebp
jb 0x4376f6
mov eax, dword [esp + 0x80]
push eax
call fcn.004415cb
add esp, 4
xor ebx, ebx
mov edi, 8
cmp dword [esp + 0xcc], edi
jb 0x437716
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.004415cb
add esp, 4
mov esi, 7
mov dword [esp + 0x4fc], 0xffffffff
cmp dword [esp + 0x5c], edi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
jb 0x43774f
mov edx, dword [esp + 0x48]
push edx
call fcn.004415cb
add esp, 4
mov dword [esp + 0x5c], esi
jmp 0x43783b
mov edi, 8
push 4
push str.size
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00406f80
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x500], 0xf
call fcn.0042e4d0
mov byte [esp + 0x4fc], 7
cmp dword [esp + 0x3c], edi
mov esi, eax
jb 0x4377ab
mov edx, dword [esp + 0x28]
push edx
call fcn.004415cb
add esp, 4
mov eax, esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00428870
lea ecx, [esp + 0xd0]
mov byte [esp + 0x4fc], 0x10
call fcn.00428620
mov ecx, dword [esp + 0x1c]
cdq
add dword [ecx + 0x10], eax
adc dword [ecx + 0x14], edx
cmp dword [esp + 0xe8], edi
jb 0x4377fe
mov eax, dword [esp + 0xd4]
push eax
call fcn.004415cb
add esp, 4
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
jmp 0x4376f8
mov dword [esp + 0x4fc], 0xffffffff
cmp dword [esp + 0x5c], edi
jb 0x437837
mov eax, dword [esp + 0x48]
push eax
call fcn.004415cb
add esp, 4
mov dword [esp + 0x5c], ebp
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x40]
cmp esi, ebx
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
je 0x437864
nop
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x4378a1
mov esi, dword [esi + 0x40]
cmp esi, ebx
jne 0x437850
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x436fd6
mov eax, 1
mov ecx, dword [esp + 0x4f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d8]
xor ecx, esp
call fcn.004414cc
add esp, 0x4ec
ret 0xc
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x437866