Function at 0x10001d5b
Capabilities:
Write file on windows

Disassembly:
push 0x760
push 0x10015100
call fcn.10008650
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10001fce
cmp dword [ebp + 0x10], 0
je 0x10001fce
cmp edi, 4
jae 0x10001fce
cmp dword [0x100170a0], 0
jne 0x10001fce
or dword [ebp - 0x768], 0xffffffff
xor esi, esi
mov dword [ebp - 4], esi
push esi
call fcn.10005f48
pop ecx
test eax, eax
je 0x10001fa5
imul esi, edi, 0xc
add esi, 0x100170a4
cmp dword [esi], 0
jne 0x10001f8e
mov dword [esi], 1
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.10005c9b
pop ecx
pop ecx
test eax, eax
jne 0x10001df5
push str.get_dumpfile_path_root_failed_r_n
push 4
call fcn.100057f8
pop ecx
pop ecx
jmp 0x10001f8e
push edi
push str.wbxtra___02hu__02hu__04hu___02hu__02hu__02hu__u.dump
push 0x80
lea eax, [ebp - 0x324]
push eax
call fcn.100041e9
lea eax, [ebp - 0x324]
push eax
push 0x104
lea eax, [ebp - 0x734]
push eax
call fcn.10005c43
add esp, 0x1c
lea eax, [ebp - 0x734]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10001e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x224]
push eax
push str.create_dumpfile___s__failed__err___d_r_n
push 4
call fcn.100057f8
add esp, 0x10
jmp 0x10001f8e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x76c], eax
lea ecx, [eax + eax]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [esi + 8], eax
test eax, eax
je 0x10001ebc
lea ecx, [ebp - 0x224]
push ecx
push dword [ebp - 0x76c]
push eax
call fcn.10004295
add esp, 0xc
push 0x30
push 0
lea eax, [ebp - 0x764]
push eax
call sub.VCRUNTIME140.dll_memset
push 7
push str.WBXDUMP
lea eax, [ebp - 0x764]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov byte [ebp - 0x75d], 3
mov dword [ebp - 0x75c], edi
xor edi, edi
mov dword [ebp - 0x758], edi
push 1
push edi
call fcn.10005ae9
add esp, 0x20
test eax, eax
je 0x10001f48
push 0x104
lea ecx, [ebp - 0x52c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10001f48
push 0x5c
lea eax, [ebp - 0x52c]
push eax
call fcn.100043c1
lea ecx, [eax + 2]
lea edx, [ebp - 0x52c]
test eax, eax
cmovne edx, ecx
push edx
push 0x10
lea eax, [ebp - 0x754]
push eax
call fcn.10004295
add esp, 0x14
mov dword [ebp - 0x770], edi
push edi
lea eax, [ebp - 0x770]
push eax
push 0x30
lea eax, [ebp - 0x764]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push edi
push 0x400
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x224]
push eax
push str.create_dumpfile___s__success_r_n
push 2
call fcn.100057f8
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push dword [esi + 4]
call fcn.1000585a
add esp, 0xc
mov dword [ebp - 0x768], eax
jmp 0x10001fbf
mov dword [ebp - 0x768], esi
jmp 0x10001fbf
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x768]
jmp 0x10001fd1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret