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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x98
mov edi, dword [esp + 0xac]
movaps xmm0, xmmword [0x4f3a50]
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x28]
push edi
push eax
call dbg.ffDetectDiskIO
add esp, 8
test eax, eax
je 0x4393cf
add edi, 0x20
push eax
push 0x4f3a78
push 0
push edi
push 0
push str.Disk_IO
call dbg.ffPrintError
add esp, 0x18
jmp 0x439bd0
push sym._sortDevices
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x34]
call sym._qsort
add esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x20], eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x439b69
mov ebx, dword [esp + 0x28]
lea ecx, [edi + 0x20]
mov dword [esp + 0x24], ecx
lea ebp, [esp + 0xc]
xor edx, edx
jmp 0x43952f
mov esi, dword [esp + 8]
mov word [esi + ebp], 0x732f
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
lea ebp, [esp + 0xc]
lea ecx, [ebx + 0x18]
lea edx, [ebx + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], 7
mov esi, esp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 7
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 7
lea esi, [ebx + 0xc]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 2
lea ecx, [ebx + 0x20]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 2
lea ecx, [ebx + 0x30]
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x58]
push ecx
push 8
push 1
push dword [esp + 0x30]
push 0
push eax
call dbg.ffPrintFormat
add esp, 0x18
mov edx, dword [esp + 0x38]
add ebx, 0x38
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov ecx, ebx
sub ecx, esi
sar ecx, 3
imul ecx, ecx, 0xb6db6db7
cmp ecx, eax
jge 0x439aed
inc edx
cmp eax, 1
mov eax, edx
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x24], 0
mov dword [esp + 0x38], edx
je 0x439560
cmp dword [esp + 0x18], 0
je 0x4395a0
mov eax, dword [esp + 0x20]
mov byte [eax], 0
jmp 0x4395a9
lea eax, [ebx + 8]
lea ecx, [ebx + 0x14]
cmp dword [ebx + 4], 0
cmove eax, ecx
push dword [eax]
push str.Disk_IO___s_
lea eax, [esp + 0x20]
push eax
call dbg.ffStrbufSetF
add esp, 0xc
cmp dword [esp], 0
jne 0x4395fa
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
jmp 0x439601
mov eax, dword [0x5052b0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], 1
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 7
lea eax, [ebx + 0xc]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x40]
push eax
push 3
push dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
call dbg.ffParseFormatString
add esp, 0x10
cmp dword [esp], 0
je 0x439587
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
cmp dword [edi + 0x3c], 0
je 0x439630
cmp dword [esp + 0xc], 0
je 0x4396c0
mov eax, dword [esp + 0x14]
mov byte [eax], 0
jmp 0x4396c9
push 0
push dword [esp + 0x28]
push 0
push dword [esp + 0x2c]
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov eax, esp
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dbg.ffParseSize
add esp, 0xc
cmp byte [edi + 0x54], 0
jne 0x4398a8
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x439679
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, 2
jae 0x43976d
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 3]
nop dword [eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x439690
test eax, eax
je 0x439776
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
jmp 0x439884
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov eax, esp
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dbg.ffParseSize
add esp, 0xc
cmp byte [edi + 0x54], 0
jne 0x4397ce
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x439702
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, 2
jae 0x439745
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 3]
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x439720
test eax, eax
je 0x43974b
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
jmp 0x4397a6
mov esi, dword [esp + 8]
jmp 0x4397b0
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x43979f
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x4397a2
mov esi, dword [esp + 8]
jmp 0x43988e
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x43987d
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x439880
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0xac]
mov word [esi + ebp], 0x732f
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
lea ebp, [esp + 0xc]
push ebp
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call dbg.ffParseSize
add esp, 0xc
cmp byte [edi + 0x54], 0
jne 0x43946c
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x439801
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, 2
jae 0x43944a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 3]
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x439820
test eax, eax
je 0x439845
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
jmp 0x43986e
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x439867
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x43986a
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0xac]
jmp 0x43944e
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0xac]
mov word [esi + ebp], 0x732f
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x4398be
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, 7
jae 0x4398f5
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 8]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x4398d0
test eax, eax
je 0x4398fb
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
jmp 0x439924
mov esi, dword [esp + 8]
jmp 0x43992e
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x43991d
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x439920
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0xac]
mov dword [esi + ebp + 3], 0x202d2029
mov dword [esi + ebp], 0x29522820
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 7]
mov dword [esp + 4], edx
mov byte [ecx + eax + 7], 0
mov eax, esp
push eax
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call dbg.ffParseSize
add esp, 0xc
cmp byte [edi + 0x54], 0
jne 0x439a18
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x439982
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, 2
jae 0x4399c5
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 3]
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x4399a0
test eax, eax
je 0x4399cb
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
jmp 0x4399f4
mov esi, dword [esp + 8]
jmp 0x4399fe
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x4399ed
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x4399f0
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0xac]
mov word [esi + ebp], 0x732f
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x439a2e
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, 4
jae 0x439a65
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 5]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x439a40
test eax, eax
je 0x439a6b
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
jmp 0x439a94
mov esi, dword [esp + 8]
jmp 0x439a9e
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x439a8d
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x439a90
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0xac]
mov dword [esi + ebp], 0x29572820
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 4]
mov dword [esp + 4], edx
mov byte [ecx + eax + 4], 0
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
push eax
push dword [esp + 8]
push 1
push dword [esp + 0x14]
call sym._fwrite
add esp, 0x10
push esi
push 0xa
call sym._fputc
add esp, 8
lea ebp, [esp + 0xc]
jmp 0x43950b
test eax, eax
jle 0x439b69
lea edi, [esi + 0x38]
add esi, 0x14
jmp 0x439b1d
mov dword [esi], eax
mov eax, edi
sub eax, dword [esp + 0x28]
sar eax, 3
imul eax, eax, 0xb6db6db7
add edi, 0x38
add esi, 0x38
cmp eax, dword [esp + 0x30]
jge 0x439b69
cmp dword [esi - 0x14], 0
mov dword [esi - 0x10], 0
je 0x439b3c
mov dword [esi - 0x14], 0
push dword [esi - 0xc]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi - 0xc], eax
cmp dword [esi - 8], 0
mov dword [esi - 4], 0
je 0x439b00
mov dword [esi - 8], 0
push dword [esi]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
jmp 0x439b00
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x439b8c
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x439bad
mov dword [esp], 0
push dword [esp + 8]
call sym._free
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
je 0x439bd0
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
call sym._free
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x439bf1
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push eax
call sym._free
add esp, 4
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret