Function at 0x62104190
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x621061cc
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp 0x621041f0
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6210a3d8]
test esi, esi
jle 0x621042dd
mov edi, dword [0x6210a3dc]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x62104224
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x621042d6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x62104210
mov dword [esp], eax
mov ebx, eax
call fcn.62104980
test eax, eax
mov edi, eax
je 0x6210431a
lea ebx, [esi + esi*2]
mov esi, dword [0x6210a3dc]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.62104a80
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6210a3dc]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x621042fa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x621042cf
sub eax, 0x40
and eax, 0xffffffbf
je 0x621042cf
mov eax, dword [esp + 0x20]
add ebx, dword [0x6210a3dc]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x621042e4
add dword [0x6210a3d8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x6210422e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.62104190
mov eax, dword [0x6210a3dc]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.62104190
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.62104190
lea esi, [esi]
mov eax, dword [0x6210a3d4]
test eax, eax
je 0x62104340
ret
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [0x6210a3d4], 1
call fcn.621049d0
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x1e]
and eax, 0xfffffff0
call fcn.62104bc0
mov dword [0x6210a3d8], 0
sub esp, eax
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
mov dword [0x6210a3dc], eax
mov eax, 0x62106960
sub eax, 0x62106918
cmp eax, 7
jle 0x62104430
cmp eax, 0xb
jle 0x621044f3
mov eax, dword [0x62106918]
test eax, eax
jne 0x62104438
mov eax, dword [0x6210691c]
test eax, eax
jne 0x62104438
mov edi, dword [0x62106920]
mov ebx, 0x62106924
test edi, edi
je 0x621044f8
mov ebx, 0x62106918
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x621045d7
add ebx, 0xc
cmp ebx, 0x62106960
jae 0x62104430
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov eax, dword [edx + 0x62100000]
lea esi, [ecx + 0x62100000]
mov dword [ebp - 0x3c], eax
movzx eax, byte [ebx + 8]
cmp eax, 0x10
je 0x62104512
cmp eax, 0x20
je 0x62104596
cmp eax, 8
je 0x62104567
mov dword [esp + 4], eax
mov dword [esp], str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.62104190
lea esi, [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x62106918
cmp ebx, 0x62106960
jae 0x62104430
mov esi, dword [ebx + 4]
mov edx, dword [ebx]
add ebx, 8
add edx, dword [esi + 0x62100000]
lea eax, [esi + 0x62100000]
mov dword [ebp - 0x34], edx
call 0x621041f0
mov eax, dword [ebp - 0x34]
cmp ebx, 0x62106960
mov dword [esi + 0x62100000], eax
jb 0x62104445
mov eax, dword [0x6210a3d8]
xor ebx, ebx
test eax, eax
jg 0x6210448b
jmp 0x62104430
add ebx, 1
cmp ebx, dword [0x6210a3d8]
jge 0x62104430
lea edi, [ebx + ebx*2]
mov eax, dword [0x6210a3dc]
lea esi, [edi*4]
add eax, esi
mov edx, dword [eax]
test edx, edx
je 0x62104480
lea ecx, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], ecx
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x621045b2
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [0x6210a3dc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
jmp 0x62104480
mov ebx, 0x62106918
mov esi, dword [ebx]
test esi, esi
jne 0x6210443d
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x621043d0
jmp 0x6210443d
movzx eax, word [ecx + 0x62100000]
mov dword [ebp - 0x40], ecx
mov edi, eax
or edi, 0xffff0000
cmp word [ecx + 0x62100000], 0
cmovs eax, edi
mov edi, dword [ebp - 0x3c]
sub eax, 0x62100000
sub eax, edx
add edi, eax
mov eax, esi
mov dword [ebp - 0x34], edi
call 0x621041f0
movzx eax, word [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov word [ecx + 0x62100000], ax
add ebx, 0xc
cmp ebx, 0x62106960
jb 0x621043e7
jmp 0x62104472
movzx eax, byte [esi]
mov edi, dword [ebp - 0x3c]
mov ecx, eax
or ecx, 0xffffff00
cmp byte [esi], 0
cmovs eax, ecx
sub eax, 0x62100000
sub eax, edx
add edi, eax
mov eax, esi
mov dword [ebp - 0x34], edi
call fcn.62101270
movzx eax, byte [ebp - 0x34]
mov byte [esi], al
jmp 0x62104553
mov eax, dword [esi]
mov edi, dword [ebp - 0x3c]
sub eax, 0x62100000
sub eax, dword [ebx]
add edi, eax
mov eax, esi
mov dword [ebp - 0x34], edi
call 0x621041f0
mov dword [esi], edi
jmp 0x62104553
mov ecx, dword [0x6210a3dc]
add ecx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.62104190
mov dword [esp + 4], eax
mov dword [esp], str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.62104190
nop
nop
nop
nop
nop
nop
nop
nop
nop