Function at 0x432b80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x468e39
mov eax, dword fs:[0]
push eax
sub esp, 0xa30
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0xa2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0xa44]
mov dword fs:[0], eax
push str.CommandSetupDiGetDeviceChildren_n
mov esi, ecx
call fcn.004454c0
push 0x478
call fcn.004534f0
add esp, 8
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0xa58]
xor edi, edi
mov dword [esp + 0xa4c], edi
cmp eax, edi
je 0x432bfe
push ebx
push edi
push edi
mov ecx, eax
call fcn.00405420
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x432c04
mov dword [esp + 0x1c], edi
mov ebp, edi
xor eax, eax
mov dword [esp + 0xa4c], 0xffffffff
cmp ebp, edi
je 0x432f48
test bl, bl
jne 0x432f48
push 0x206
lea ecx, [esp + 0x3e]
push edi
push ecx
mov word [esp + 0x44], ax
call fcn.00453450
mov eax, dword [esp + 0xa68]
add esp, 0xc
cmp word [eax], di
je 0x432c5f
lea edx, [esp + 0x38]
sub edx, eax
jmp 0x432c50
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x432c50
push 0x7fe
lea eax, [esp + 0x246]
xor edx, edx
push edi
push eax
mov word [esp + 0x24c], dx
call fcn.00453450
add esp, 0xc
mov dword [esp + 0x14], edi
cmp word [esp + 0x38], di
je 0x432e6a
lea ecx, [esp + 0x20]
call fcn.00407e20
push edi
lea ecx, [esp + 0x24]
push ecx
push 0x1003
lea edx, [esp + 0x44]
push edx
push 0x99
mov ebx, 1
push edi
mov ecx, ebp
mov dword [esp + 0xa64], ebx
call fcn.00404e40
mov eax, dword [esp + 0x24]
mov dword [esi + 0x480], ebx
lea ebx, [esi + 0x484]
mov dword [esp + 0x18], eax
mov dword [esi + 0x47c], eax
mov eax, str.GETDEVICECHILDREN_successful
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x432ce3
mov eax, dword [esi + 0x47c]
mov ecx, dword [esi + 0x480]
push ebx
push eax
push ecx
lea edx, [esp + 0x24c]
push str._d__d___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x254]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432d21
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push edi
sar eax, 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x260]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x24c]
push eax
push ecx
call ebp
mov edx, dword [esi + 0x260]
mov ebx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edx
call ebx
cmp dword [esp + 0x18], 0
jle 0x432dfd
lea esp, [esp]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edi*8]
push eax
lea ecx, [esp + 0x244]
push str.__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x24c]
add esp, 0xc
mov dword [esp + 0x14], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432da0
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x260]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x24c]
push ecx
push edx
call ebp
lea eax, [esp + 0x240]
push eax
push str.wszReturn___s__n
call fcn.004454c0
mov ecx, dword [esi + 0x260]
add esp, 8
push ecx
call ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [esp + 0x18]
jl 0x432d70
lea ecx, [esp + 0x20]
call fcn.00401b40
mov eax, dword [esi + 0x260]
push 0
lea edx, [esp + 0x18]
push edx
push 8
push 0x479370
push eax
mov dword [esp + 0x28], 0
call ebp
mov ecx, dword [esi + 0x260]
push ecx
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esi + 0x269], 1
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004054c0
push esi
call fcn.004534ca
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4c], 0xffffffff
call fcn.00405350
jmp 0x432f46
push str.error_wszOutput:_No_Input_n
call fcn.004454c0
lea ebx, [esi + 0x484]
mov eax, str.GETDEVICECHILDREN_failed
mov edx, ebx
add esp, 4
mov dword [esi + 0x480], 1
mov dword [esi + 0x47c], edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x432e96
mov edx, dword [esi + 0x47c]
mov eax, dword [esi + 0x480]
push ebx
push edx
push eax
lea ecx, [esp + 0x24c]
push str._d__d___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x254]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432ed4
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push edi
sar eax, 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x260]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x24c]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x260]
mov ebp, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push eax
call ebp
mov edx, dword [esi + 0x260]
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
push 0x479370
push edx
mov dword [esp + 0x28], edi
call ebx
mov eax, dword [esi + 0x260]
push eax
call ebp
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esi + 0x269], 1
xor eax, eax
mov ecx, dword [esp + 0xa44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00453432
add esp, 0xa3c
ret 0xc