Function at 0x100fd503
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], ebx
push edi
mov edi, 0x10035994
test esi, esi
jne 0x100fd543
push 0x10020554
mov edx, 0x19b8
mov ecx, edi
call fcn.100e970f
test ebx, ebx
jne 0x100fd558
push 0x1003ab04
mov edx, 0x19b9
mov ecx, edi
call fcn.100e970f
cmp dword [ebp + 0xc], 0
jne 0x100fd56f
push 0x1003ab0c
mov edx, 0x19ba
mov ecx, edi
call fcn.100e970f
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
mov dword [ebp - 0x30], ebx
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 8], eax
call fcn.100afec5
push 1
push 0x101dd068
lea ecx, [ebp - 0x54]
call fcn.100ad791
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.10129ce2
mov esi, eax
test esi, esi
jns 0x100fd5bf
push 0x1003ab14
push 1
push esi
push 0x4000000
jmp 0x100fd794
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push dword [ebx + 0x30]
push dword [ebp - 0x38]
push 0x1003ab3c
push eax
call fcn.100a6b40
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x100fd5f9
push 0x1003ab50
push 1
push esi
push 0x4000000
call fcn.100ab973
mov ebx, dword [ebp - 0x30]
jmp 0x100fd799
push dword [ebx + 0x30]
lea eax, [ebp - 0x40]
push dword [ebp - 0x38]
push 0x1003ab70
push eax
call fcn.100a6b40
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x100fd61d
push 0x1003ab8c
jmp 0x100fd5e4
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
mov edx, dword [ebp - 0x40]
call fcn.100f76d9
mov esi, eax
test esi, esi
jns 0x100fd64b
push ebx
push 0x1003abb0
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100fd79c
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
sub esp, 0x14
call fcn.100eb467
mov esi, eax
test esi, esi
jns 0x100fd679
push 0x1003abc8
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [ebp - 0x3c]
jmp 0x100fd799
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 8]
xor esi, esi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x44]
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x100fd6bc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100fd6ab
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100fd6b2
mov esi, 0x80004005
push 0x1003abe8
jmp 0x100fd5b2
test edi, edi
je 0x100fd6ce
cmp edi, 0xffffffff
je 0x100fd6ce
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor edi, edi
mov ecx, dword [ebp - 0x34]
call fcn.100b3e5c
neg eax
mov ecx, ebx
push 0
sbb eax, eax
lea edx, [eax + 1]
call fcn.100ebf39
test eax, eax
jns 0x100fd700
push ebx
push 0x100384c8
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x14
cmp dword [ebp - 0x48], esi
je 0x100fd79c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.100f5bc3
mov esi, eax
test esi, esi
jns 0x100fd725
push 0x1003ac10
jmp 0x100fd5b2
mov ecx, dword [ebp - 0x34]
call fcn.100b3e5c
neg eax
lea ecx, [ebp - 0x28]
push ecx
sbb al, al
mov edx, 0x1003ac28
inc al
mov cl, al
call fcn.100fc61b
test eax, eax
jns 0x100fd75c
push 0x1003ac3c
push 1
push eax
push 0x2000000
call fcn.100ab973
add esp, 0x10
mov ecx, dword [ebp - 0x34]
call fcn.100f7188
test al, al
je 0x100fd79c
call fcn.100b3e5c
neg eax
lea ecx, [ebp - 0x28]
push ecx
sbb al, al
mov edx, 0x100205d8
inc al
mov cl, al
call fcn.100fc61b
test eax, eax
jns 0x100fd79c
push 0x1003ac68
push 1
push eax
push 0x2000000
call fcn.100ab973
add esp, 0x10
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100fd7ad
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
test ebx, ebx
je 0x100fd7bb
lea eax, [ebx - 4]
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x100fd7cc
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
test edi, edi
je 0x100fd7dc
cmp edi, 0xffffffff
je 0x100fd7dc
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea ecx, [ebp - 0x54]
call fcn.100aa570
lea ecx, [ebp - 0x28]
call fcn.100aff3d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 8