Function at 0x423794
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov dword [esp], 0x800
push 0x800
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
cmp byte [0x506380], 0
je 0x4232d4
mov dword [edi], 0x6d315b1b
mov dword [esp + 4], 4
mov byte [edi + 4], 0
mov esi, 4
jmp 0x4232d6
xor esi, esi
mov ebx, dword [0x50633c]
test ebx, ebx
je 0x423338
mov eax, esi
xor eax, 0x7ff
cmp eax, ebx
jae 0x42331f
mov dword [esp + 0x18], ebp
lea eax, [ebx + esi]
inc eax
mov ecx, 0x800
nop dword [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x423300
push ebp
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
mov dword [esp + 8], eax
mov dword [esp], ebp
mov ebp, dword [esp + 0x18]
lea eax, [edi + esi]
push ebx
push 0xa
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
add esi, ebx
mov dword [esp + 4], esi
mov byte [edi + esi], 0
mov esi, dword [0x506340]
test esi, esi
je 0x4233dc
mov eax, dword [esp]
mov ebx, dword [esp + 4]
test eax, eax
je 0x42335b
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, esi
jae 0x42338d
mov dword [esp + 0x18], ebp
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [esi + ebx]
inc edx
nop
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x423370
test eax, eax
je 0x423393
push ebp
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x4233b8
mov edi, dword [esp + 8]
jmp 0x4233c3
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test ebx, ebx
je 0x4233b5
lea eax, [ebx + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4233b8
mov byte [edi], 0
mov dword [esp + 8], edi
mov dword [esp], ebp
mov ebp, dword [esp + 0x18]
lea eax, [edi + ebx]
push esi
push 0x20
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
add ebx, esi
mov dword [esp + 4], ebx
mov byte [edi + ebx], 0
mov eax, dword [0x50633c]
mov dword [0x507638], eax
cmp byte [esp + 0x1c], 0
je 0x423422
mov eax, esp
push dword [0x5062d0]
push 0x4f2250
push eax
call fcn.00472860
add esp, 0xc
jmp 0x423422
xor eax, eax
movzx ecx, byte [esp + 0x10]
mov al, cl
add ebp, eax
inc ebp
inc dword [0x507638]
mov dword [esp + 0xc], 0
jmp 0x42344a
mov edi, dword [esp + 8]
mov dword [edi + esi], 0x20202020
mov eax, dword [esp + 4]
add eax, 4
mov dword [esp + 4], eax
add eax, dword [esp + 8]
mov byte [eax], 0
inc ebp
movzx ebx, byte [ebp]
cmp ebx, 0x1b
ja case.0x423457.1
jmp dword [ebx*4 + 0x4f2338]
mov eax, dword [esp]
mov esi, dword [esp + 4]
test eax, eax
je 0x423474
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 4
jae 0x42342c
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 5]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x423490
test eax, eax
je 0x423503
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423550
cmp byte [ebp + 1], 0x5b
jne 0x42379e
mov eax, dword [esp]
mov esi, dword [esp + 4]
test eax, eax
je 0x4234d0
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 2
jae 0x4234fd
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 3]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x4234e0
test eax, eax
je 0x423525
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423560
mov edi, dword [esp + 8]
jmp 0x423567
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x423547
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423550
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x42355c
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423560
mov byte [edi], 0
nop word [eax + eax]
mov dword [esp + 8], edi
mov dword [esp], ebx
jmp 0x423430
mov byte [edi], 0
nop
mov dword [esp + 8], edi
mov dword [esp], ebx
mov word [edi + esi], 0x5b1b
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 edx, [ebp + 2]
mov dword [esp + 0x18], ebp
movsx ebx, byte [ebp + 2]
cmp ebx, 0x3b
je 0x4235a0
mov eax, ebx
add eax, 0xffffffd0
cmp eax, 9
ja 0x42366e
nop
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x4235b2
lea ecx, [ebp + 1]
cmp eax, ecx
jne 0x4235f0
mov dword [esp + 0x10], ebx
mov ebx, edx
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 2]
nop dword [eax + eax]
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x4235d0
test eax, eax
je 0x423600
push esi
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423630
mov edi, dword [esp + 8]
jmp 0x423640
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test ebp, ebp
je 0x423622
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423630
mov byte [edi], 0
nop word cs:[eax + eax]
mov edx, ebx
mov dword [esp + 8], edi
mov dword [esp], esi
lea ecx, [ebp + 1]
mov ebx, dword [esp + 0x10]
inc edx
mov dword [esp + 4], ecx
mov byte [edi + ebp], bl
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
movsx ebx, byte [edx]
cmp ebx, 0x3b
je 0x4235a0
mov eax, ebx
add eax, 0xffffffd0
cmp eax, 0xa
jb 0x4235a0
test bl, bl
js 0x4237ab
mov eax, dword [esp]
mov ebp, dword [esp + 4]
test eax, eax
je 0x423688
lea ecx, [ebp + 1]
cmp eax, ecx
jne 0x4236bd
mov dword [esp + 0x10], ebx
mov ebx, edx
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebp + 2]
nop
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x4236a0
test eax, eax
je 0x4236c3
push esi
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x4236f0
mov edi, dword [esp + 8]
jmp 0x423700
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test ebp, ebp
je 0x4236e5
lea eax, [ebp + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4236f0
mov byte [edi], 0
nop dword [eax + eax]
mov edx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], edi
mov dword [esp], esi
lea ecx, [ebp + 1]
mov dword [esp + 4], ecx
mov byte [edi + ebp], bl
mov eax, dword [esp + 8]
add eax, dword [esp + 4]
mov ebp, edx
jmp 0x423446
cmp bl, 0x24
jne 0x423934
cmp byte [esp + 0x1c], 0
je 0x423934
movzx eax, byte [ebp + 1]
cmp eax, 0x24
je 0x42373b
test eax, eax
jne 0x423808
mov eax, dword [esp]
mov esi, dword [esp + 4]
test eax, eax
je 0x423751
lea ecx, [esi + 1]
cmp eax, ecx
jne 0x423864
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 2]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x423770
test eax, eax
je 0x42386a
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x4238b3
cmp byte [ebp + 1], 0xa
je case.0x423457.10
mov dword [esp + 0x14], 1
jmp 0x423946
mov ecx, dword [esp + 0x18]
not ecx
mov eax, dword [esp + 0xc]
add eax, edx
add eax, ecx
mov dword [esp + 0xc], eax
movzx eax, bl
mov ecx, eax
and ecx, 0xffffffe0
cmp ecx, 0xc0
jne 0x4237d7
mov dword [esp + 0x14], 2
jmp 0x423801
mov ecx, eax
and ecx, 0xfffffff0
mov dword [esp + 0x14], 3
cmp ecx, 0xe0
je 0x423801
and eax, 0xfffffff8
xor ecx, ecx
cmp eax, 0xf0
sete cl
lea eax, [ecx + ecx*2]
inc eax
mov dword [esp + 0x14], eax
mov ebp, edx
jmp 0x423946
movsx eax, al
mov ecx, eax
add cl, 0xc6
cmp cl, 0xf6
ja 0x42388c
mov eax, dword [esp]
mov esi, dword [esp + 4]
test eax, eax
je 0x42382b
lea ecx, [esi + 1]
cmp eax, ecx
jne 0x4238dd
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 2]
nop dword [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x423840
test eax, eax
je 0x4238e3
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423908
mov edi, dword [esp + 8]
jmp 0x4238bd
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x4238b0
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4238b3
lea eax, [eax + eax*2]
push dword [eax*4 + 0x506084]
push 0x4f2250
lea eax, [esp + 8]
push eax
call fcn.00472860
add esp, 0xc
add ebp, 2
jmp 0x42344a
mov byte [edi], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [esi + 1]
mov dword [esp + 4], ecx
mov byte [edi + esi], 0x24
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
inc dword [esp + 0xc]
add ebp, 2
jmp 0x42344a
mov edi, dword [esp + 8]
jmp 0x423912
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x423905
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423908
mov byte [edi], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [esi + 1]
mov edx, dword [esp + 0xc]
inc ebp
mov dword [esp + 4], ecx
mov byte [edi + esi], 0x24
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
inc edx
mov dword [esp + 0xc], edx
movzx ebx, byte [ebp]
mov dword [esp + 0x14], 1
mov edx, ebp
test bl, bl
js 0x4237bd
inc dword [esp + 0xc]
xor esi, esi
mov edx, dword [esp + 0x14]
jmp 0x423983
mov eax, edi
mov edi, dword [esp + 8]
inc ebp
mov dword [esp + 4], ecx
mov byte [edi + eax], bl
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
inc esi
cmp esi, edx
je 0x42344a
movzx ebx, byte [ebp]
test bl, bl
je 0x42344a
mov eax, dword [esp]
mov edi, dword [esp + 4]
test eax, eax
je 0x4239a1
lea ecx, [edi + 1]
cmp eax, ecx
jne 0x423960
mov dword [esp + 0x18], ebp
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + 2]
nop word cs:[eax + eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x4239c0
test eax, eax
mov dword [esp + 0x10], edi
je 0x4239f0
push ebp
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423a20
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, edi
mov edi, eax
test ecx, ecx
je 0x423a14
lea eax, [ecx + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423a20
mov byte [edi], 0
nop word [eax + eax]
mov edx, dword [esp + 0x14]
mov dword [esp + 8], edi
mov dword [esp], ebp
mov eax, dword [esp + 0x10]
lea ecx, [eax + 1]
mov ebp, dword [esp + 0x18]
jmp 0x423966
mov edi, dword [0x506344]
mov eax, dword [esp]
mov esi, dword [esp + 4]
test edi, edi
je 0x423aff
test eax, eax
mov dword [esp + 0x10], edi
je 0x423a67
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, edi
jae 0x423a9d
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + esi]
inc edx
nop dword [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x423a80
test eax, eax
je 0x423aa3
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423ad0
mov edi, dword [esp + 8]
jmp 0x423ad7
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x423ac5
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423ad0
mov byte [edi], 0
nop dword [eax + eax]
mov dword [esp + 8], edi
mov dword [esp], ebx
lea eax, [edi + esi]
mov ebx, dword [esp + 0x10]
push ebx
push 0x20
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
add esi, ebx
mov dword [esp + 4], esi
mov byte [edi + esi], 0
movzx ebx, byte [ebp]
mov eax, dword [esp]
mov esi, dword [esp + 4]
cmp bl, 0xd
sete byte [esp + 0x10]
test eax, eax
je 0x423b12
lea ecx, [esi + 1]
cmp eax, ecx
jne 0x423b4d
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 2]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x423b30
test eax, eax
je 0x423b53
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423b80
mov edi, dword [esp + 8]
jmp 0x423b8a
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x423b75
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423b80
mov byte [edi], 0
nop dword [eax + eax]
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [esi + 1]
mov edx, dword [esp + 0xc]
mov dword [esp + 4], ecx
mov byte [edi + esi], 0xa
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
mov esi, dword [0x506340]
test esi, esi
je 0x423c58
mov eax, dword [esp]
mov ebx, dword [esp + 4]
test eax, eax
je 0x423bc5
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, esi
jae 0x423bfd
mov dword [esp + 0x18], ebp
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + ebx]
inc edx
nop word [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x423be0
test eax, eax
je 0x423c03
push ebp
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x423c30
mov edi, dword [esp + 8]
jmp 0x423c3b
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test ebx, ebx
je 0x423c25
lea eax, [ebx + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423c30
mov byte [edi], 0
nop dword [eax + eax]
mov dword [esp + 8], edi
mov dword [esp], ebp
mov ebp, dword [esp + 0x18]
lea eax, [edi + ebx]
push esi
push 0x20
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
add ebx, esi
mov dword [esp + 4], ebx
mov byte [edi + ebx], 0
mov edx, dword [esp + 0xc]
cmp edx, dword [0x507634]
jbe 0x423410
mov dword [0x507634], edx
jmp 0x423410
mov eax, dword [esp]
mov edi, dword [esp + 4]
test eax, eax
je 0x423c85
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 4
jae 0x423cbd
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + 5]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x423ca0
test eax, eax
je 0x423cc3
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, eax
jmp 0x423ce8
mov esi, dword [esp + 8]
jmp 0x423cef
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x423ce5
lea eax, [edi + 1]
push eax
push dword [esp + 0xc]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423ce8
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov ebx, dword [esp + 0xc]
mov dword [esi + edi], 0x6d305b1b
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
cmp byte [0x50634b], 0
je 0x423d7d
mov dword [0x507638], 0
mov dword [0x507634], 0
mov edi, dword [0x506344]
test edi, edi
je 0x423dfd
mov eax, dword [esp]
mov ebx, dword [esp + 4]
test eax, eax
je 0x423d4e
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, edi
jae 0x423db2
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + ebx]
inc edx
nop dword [eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x423d60
test eax, eax
je 0x423db8
push ebp
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, eax
jmp 0x423ddd
mov eax, dword [0x507634]
cmp ebx, eax
cmova eax, ebx
add eax, dword [0x506340]
add eax, dword [0x506344]
mov dword [0x507634], eax
push dword [0x507638]
push str.e_1Ge__uA
lea eax, [esp + 8]
push eax
call fcn.00472860
add esp, 0xc
jmp 0x423dfd
mov esi, dword [esp + 8]
jmp 0x423de4
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test ebx, ebx
je 0x423dda
lea eax, [ebx + 1]
push eax
push dword [esp + 0xc]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x423ddd
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], ebp
lea eax, [esi + ebx]
push edi
push 0xa
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
add ebx, edi
mov dword [esp + 4], ebx
mov byte [esi + ebx], 0
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x20]
push 0
push ecx
push dword [esp + 0xc]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x423e3f
mov dword [esp], 0
push dword [esp + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret