Function at 0x1000cc90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
mov eax, dword [ebx + 4]
push esi
push edi
lea ecx, [esp + 0x1c]
push ecx
push str.DATABLOCK
push eax
call sym.lhcom01A.dll_hdrpars_FindTag
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x1000cd2e
mov eax, dword [eax + 8]
lea edx, [esp + 0x18]
push edx
push str.BROKERSTRING
push eax
call sym.lhcom01A.dll_hdrpars_FindTag
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x1000cd14
mov esi, dword [ebx + 8]
xor edi, edi
test esi, esi
je 0x1000cd21
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [ecx + 4]
push edx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x1000cd00
mov edi, 1
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x1000cce6
test edi, edi
je 0x1000cd21
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
jmp 0x1000cca4
pop edi
pop esi
pop ebp
mov eax, 0x80220105
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 0x80220106
pop ebx
add esp, 0x10
ret
mov esi, dword [ebx + 8]
xor edi, edi
test esi, esi
je 0x1000cd87
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 4]
push edi
push edx
push eax
push ecx
call fcn.1000cc20
add esp, 0x10
cmp eax, 0x80000000
jae 0x1000cfb6
mov ecx, dword [esi + 4]
mov esi, dword [esi + 0xc]
add edi, ecx
test esi, esi
je 0x1000cd87
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 4]
push edi
push edx
push eax
push ecx
call fcn.1000cc20
add esp, 0x10
cmp eax, 0x80000000
jb 0x1000cd57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [ebx]
push edx
call fcn.1000bd50
mov esi, eax
add esp, 4
test esi, esi
je 0x1000cfb1
push 0x100157ec
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
test edi, edi
jne 0x1000cdc5
pop edi
pop esi
pop ebp
mov eax, 0x8022018b
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 2
lea eax, [esp + 0x1a]
push 1
push eax
mov byte [esp + 0x22], 0xff
mov byte [esp + 0x23], 0xfe
call ebp
add esp, 0x10
cmp eax, 2
jae 0x1000ce00
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, dword [sym.imp.MSVCRT.dll_fwprintf]
push str._LHS__r_n
push edi
call ebx
add esp, 8
test eax, eax
jge 0x1000ce2c
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str._VERSION_LH_1.0__VERSION__r_n_HEADER__r_n
push edi
call ebx
add esp, 8
test eax, eax
jge 0x1000ce52
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x24]
push 1
mov ecx, dword [esi + 4]
push ecx
push edi
call fcn.1000c990
push str.__HEADER_
push edi
call ebx
add esp, 0x14
test eax, eax
jge 0x1000ce88
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esi + 8]
test esi, esi
je 0x1000cf78
push str._r_n_BINARYDATA_
push edi
call ebx
add esp, 8
test eax, eax
jge 0x1000ceb9
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esi]
push eax
push ecx
push 0
push edx
call sym.lhcom01A.dll_hdrpars_DataMap
mov eax, dword [esp + 0x38]
mov ecx, dword [esi]
push eax
push ecx
call sym.lhcom01A.dll_hdrpars_DataUnMap
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
cmp ecx, eax
jne 0x1000cf3b
mov edx, dword [esp + 0x24]
push edi
push eax
push 1
push edx
call ebp
mov ecx, dword [esi + 4]
add esp, 0x10
cmp eax, ecx
jb 0x1000cf61
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1000cf52
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi]
push ecx
push edx
push 0
push eax
call sym.lhcom01A.dll_hdrpars_DataMap
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push ecx
push edx
call sym.lhcom01A.dll_hdrpars_DataUnMap
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
cmp ecx, eax
je 0x1000ceec
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.__BINARYDATA_
push edi
call ebx
add esp, 8
test eax, eax
jge 0x1000cf78
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str._r_n__LHS_
push edi
call ebx
add esp, 8
test eax, eax
push edi
jge 0x1000cf9e
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x8022018e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, 0x80220180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret