Function at 0x40b520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov edx, 0x10
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xb8], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xac], eax
test ecx, ecx
jle 0x40b5b7
mov ebx, dword [ebp - 0xa8]
mov edi, ecx
nop word [eax + eax]
push ebx
mov esi, edx
cmp edi, 0x10
push 2
cmovl esi, edi
push esi
push 0x41a6e8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub edi, esi
add esp, 0x10
mov edx, 0x10
test edi, edi
jg 0x40b580
mov ebx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
mov edx, dword [edi + 4]
test edx, edx
je 0x40b60d
cmp dword [edi + 8], 0
jne 0x40b60d
mov ecx, eax
call fcn.0040e8d0
mov ecx, dword [ebp - 0xac]
mov esi, eax
mov edx, esi
call fcn.0040e580
mov edx, esi
mov edi, eax
mov esi, dword [ebp - 0xac]
mov ecx, dword [esi]
call fcn.00411da0
push dword [ebp - 0xa8]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push edi
call eax
mov ecx, dword [esi]
add esp, 8
mov edx, edi
call fcn.00411da0
mov edi, dword [ebp - 0xb4]
jmp 0x40b645
mov edx, dword [edi + 8]
test edx, edx
je 0x40b63f
mov ecx, eax
call fcn.0040e580
push dword [ebp - 0xa8]
mov esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push esi
call eax
mov edx, esi
add esp, 8
mov esi, dword [ebp - 0xac]
mov ecx, dword [esi]
call fcn.00411da0
jmp 0x40b645
mov esi, dword [ebp - 0xac]
push dword [ebp - 0xa8]
push 0x41af7c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
mov eax, dword [edi + 0x10]
add esp, 8
and eax, 0x1f
dec eax
cmp eax, 0xa
ja case.0x40b669.7
jmp dword [eax*4 + 0x40bfd0]
mov eax, dword [edi + 0x20]
push eax
push eax
push str._d___0x_08X__r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
push eax
push ecx
push eax
push ecx
push str._I64dL___0x_016I64X__r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
movsd xmm1, qword [edi + 0x20]
cvtpd2ps xmm0, xmm1
movss dword [ebp - 0xb8], xmm0
push dword [ebp - 0xb8]
sub esp, 8
movsd qword [esp], xmm1
push str._f___0x_08X__r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0x1c]
test ebx, ebx
jne 0x40b71d
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.0040e8d0
mov ebx, eax
test byte [ebp - 0xb0], 2
je 0x40b73c
push ebx
push str.__s__r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
add esp, 0xc
jmp 0x40b76a
mov edx, ebx
mov ecx, esi
call fcn.0040e580
mov esi, eax
push esi
push str._s_r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
mov edx, esi
add esp, 0xc
mov esi, dword [ebp - 0xac]
mov ecx, dword [esi]
call fcn.00411da0
cmp dword [edi + 0x1c], 0
jne 0x40bfbc
mov ecx, dword [esi]
mov edx, ebx
call fcn.00411da0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
test byte [ebp - 0xb0], 2
mov edx, dword [edi + 0x1c]
je 0x40b7bf
push edx
push str.__s__r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040e580
mov esi, eax
push esi
push str._s_r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
mov ecx, dword [ebp - 0xac]
add esp, 0xc
mov edx, esi
mov ecx, dword [ecx]
call fcn.00411da0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [edi + 0x18]
push str.PTR_0x_p_r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [edi + 0x1c]
push str.DATA__d_r_n
push dword [ebp - 0xa8]
call fcn.00408ed0
mov edx, dword [edi + 0x1c]
add esp, 0xc
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb0], edx
test edx, edx
jle 0x40bfbc
mov ebx, 0x24
lea edi, [ebx - 4]
nop dword [eax + eax]
cmp edx, 0x10
mov word [ebp - 0xa4], bx
mov eax, edx
lea ebx, [ebp - 0xa2]
mov edx, 0x10
mov esi, ecx
cmovg eax, edx
cmp eax, 8
mov dword [ebp - 0xb4], eax
mov edx, eax
mov eax, 8
cmovg edx, eax
mov dword [ebp - 0xb8], edx
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x40b8a1
jmp dword [eax*4 + 0x40bffc]
movzx ecx, byte [ecx]
lea ebx, [ebp - 0x9c]
mov esi, dword [ebp - 0xac]
mov eax, ecx
shr eax, 4
and ecx, 0xf
mov word [ebp - 0xa2], di
inc esi
mov edi, 0x20
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp - 0xa0], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebp - 0x9e], ax
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
lea eax, [edx + edx*2]
mov edx, 0x19
sub edx, eax
test edx, edx
jle 0x40ba3b
add edx, edx
mov edi, ebx
mov ecx, edx
mov eax, 0x200020
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
add ebx, edx
rep stosw word es:[edi], ax
mov edi, 0x20
mov edx, dword [ebp - 0xb4]
sub edx, dword [ebp - 0xb8]
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x40ba53
jmp dword [eax*4 + 0x40c01c]
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
inc esi
movzx ecx, byte [esi]
mov eax, ecx
mov word [ebx], di
shr eax, 4
and ecx, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebx + 2], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebx + 4], ax
add ebx, 6
mov eax, 8
sub eax, edx
lea edx, [eax + eax*2]
test edx, edx
jle 0x40bbcf
add edx, edx
mov edi, ebx
mov ecx, edx
mov eax, 0x200020
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
add ebx, edx
rep stosw word es:[edi], ax
mov esi, dword [ebp - 0xb4]
mov eax, 0x20
mov ecx, dword [ebp - 0xac]
mov edi, ecx
mov dword [ebx], 0x200020
mov word [ebx + 4], ax
add ebx, 6
lea eax, [esi - 1]
cmp eax, 0xf
ja case.default.0x40bbfb
jmp dword [eax*4 + 0x40c03c]
movzx esi, byte [ecx]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
mov edi, dword [ebp - 0xac]
add esp, 4
test eax, eax
mov edx, 0x2e
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov edx, 0x2e
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
inc edi
movzx esi, byte [edi]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
mov ecx, esi
mov esi, dword [ebp - 0xb4]
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov word [ebx], dx
add ebx, 2
mov edx, 0x10
sub edx, esi
test edx, edx
jle 0x40be30
add edx, edx
mov edi, ebx
mov ecx, edx
mov eax, 0x200020
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
add ebx, edx
rep stosw word es:[edi], ax
push dword [ebp - 0xa8]
mov eax, 0xd
mov word [ebx], ax
add ebx, 2
mov eax, 0xa
push 2
mov word [ebx], ax
lea eax, [ebp - 0xa4]
sub ebx, eax
add ebx, 2
sar ebx, 1
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0xb0]
mov edi, 0x20
mov ecx, dword [ebp - 0xac]
sub edx, esi
add ecx, esi
mov dword [ebp - 0xb0], edx
add esp, 0x10
mov dword [ebp - 0xac], ecx
lea ebx, [edi + 4]
test edx, edx
jg 0x40b860
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa8]
push 0x41b040
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
add dword [ebx + 8], 2
add esp, 8
mov esi, dword [edi + 0x18]
mov eax, dword [ebx + 8]
test esi, esi
je 0x40bed4
mov edx, ebx
mov ecx, esi
call fcn.0040b520
mov esi, dword [esi]
test esi, esi
jne 0x40bec2
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0xbc]
add eax, 0xfffffffe
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0xa8]
mov ecx, ebx
call fcn.0040c080
push ebx
push 0x41b048
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa8]
push 0x41b050
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
mov eax, dword [ebx + 8]
add esp, 8
add eax, 2
mov dword [ebx + 8], eax
cmp dword [edi + 0x18], 0
je 0x40bf74
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
cmp dword [edi + 0x1c], ecx
jle 0x40bf74
nop dword [eax]
mov eax, dword [edi + 0x18]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40bf65
nop word [eax + eax]
mov edx, ebx
mov ecx, esi
call fcn.0040b520
mov esi, dword [esi]
test esi, esi
jne 0x40bf50
mov ecx, dword [ebp - 0xb0]
inc ecx
mov dword [ebp - 0xb0], ecx
cmp ecx, dword [edi + 0x1c]
jl 0x40bf40
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0xbc]
add eax, 0xfffffffe
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0xa8]
mov ecx, ebx
call fcn.0040c080
push ebx
push 0x41b058
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push 0xb72
mov ecx, str.__Node_type_unknown_in_node_dump_
call fcn.0040ea10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412814
mov esp, ebp
pop ebp
ret