Function at 0x10159e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x103b9004]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x18], edi
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1015a034
cmp ebx, 0xc
jne 0x10159e53
mov edx, dword [edi]
mov ecx, str.begincidchar
push ebx
call fcn.100a4410
add esp, 4
test eax, eax
jne 0x10159e53
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], eax
jmp 0x1015a02b
cmp ebx, 0xd
jne 0x10159e7b
mov edx, dword [edi]
mov ecx, str.begincidrange
push ebx
call fcn.100a4410
add esp, 4
test eax, eax
jne 0x10159e7b
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], eax
jmp 0x1015a02b
cmp ebx, 0xb
jne 0x10159e98
mov edx, dword [edi]
mov ecx, str.endcidrange
push ebx
call fcn.100a4410
add esp, 4
test eax, eax
je 0x1015a024
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.endcidchar
push eax
mov ecx, edi
mov dword [esp + 0x28], 0xa
call fcn.10034040
test al, al
jne 0x1015a024
lea eax, [esp + 0x28]
mov dword [esp + 0x28], str._WMode
push eax
mov ecx, edi
mov dword [esp + 0x30], 6
call fcn.10034040
test al, al
je 0x10159ee8
mov dword [esi + 0x18], 6
jmp 0x1015a02b
lea eax, [esp + 0x30]
mov dword [esp + 0x30], str._Registry
push eax
mov ecx, edi
mov dword [esp + 0x38], 9
call fcn.10034040
test al, al
je 0x10159f14
mov dword [esi + 0x18], 3
jmp 0x1015a02b
lea eax, [esp + 0x38]
mov dword [esp + 0x38], str._Ordering
push eax
mov ecx, edi
mov dword [esp + 0x40], 9
call fcn.10034040
test al, al
je 0x10159f40
mov dword [esi + 0x18], 4
jmp 0x1015a02b
lea eax, [esp + 0x40]
mov dword [esp + 0x40], str._Supplement
push eax
mov ecx, edi
mov dword [esp + 0x48], 0xb
call fcn.10034040
test al, al
je 0x10159f6c
mov dword [esi + 0x18], 5
jmp 0x1015a02b
lea eax, [esp + 0x48]
mov dword [esp + 0x48], str.begincodespacerange
push eax
mov ecx, edi
mov dword [esp + 0x50], 0x13
call fcn.10034040
test al, al
je 0x10159f9f
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 0
jmp 0x1015a02b
lea eax, [esp + 0x50]
mov dword [esp + 0x50], str.usecmap
push eax
mov ecx, edi
mov dword [esp + 0x58], 7
call fcn.10034040
test al, al
jne 0x1015a02b
mov eax, dword [esi + 0x18]
cmp eax, 1
je 0x1015a1f4
cmp eax, 2
je 0x1015a1f4
cmp eax, 3
jne 0x1015a04b
lea ecx, [ebx - 2]
cmp ebx, 1
jge 0x10159feb
mov dword [esp + 0x14], 0
jmp 0x1015a01b
dec ebx
test ecx, ecx
js 0x10159ff4
cmp ecx, ebx
jle 0x10159ff6
mov ecx, ebx
mov eax, dword [edi]
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x1015a01b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.10086f10
lea ecx, [esp + 0x14]
call fcn.100844f0
mov dword [esi + 0x18], 0
push edi
lea ecx, [esi + 0x54]
call fcn.10086f10
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret 4
cmp eax, 4
jne 0x1015a0aa
lea ecx, [ebx - 2]
cmp ebx, 1
jge 0x1015a062
mov dword [esp + 0x10], 0
jmp 0x1015a092
dec ebx
test ecx, ecx
js 0x1015a06b
cmp ecx, ebx
jle 0x1015a06d
mov ecx, ebx
mov eax, dword [edi]
inc eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1015a092
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
call fcn.10086f10
lea ecx, [esp + 0x10]
call fcn.10159900
mov ecx, dword [esi + 0x14]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x10]
jmp 0x1015a01f
cmp eax, 5
je 0x1015a024
cmp eax, 6
jne 0x1015a0ca
mov ecx, edi
call fcn.10159c50
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], eax
jmp 0x1015a024
cmp eax, 7
jne 0x1015a02b
lea eax, [esp + 0x60]
mov dword [esp + 0x60], str.endcodespacerange
push eax
mov ecx, edi
mov dword [esp + 0x68], 0x11
call fcn.10034040
test al, al
je 0x1015a17e
mov ecx, dword [esi + 0x38]
cmp ecx, 1
jle 0x1015a157
mov eax, dword [esi + 0x14]
lea ebx, [ecx + ecx*2]
shl ebx, 2
mov dword [eax + 0x10], 3
mov eax, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
test ebx, ebx
je 0x1015a12a
lea eax, [ebx - 1]
cmp eax, 0x7ffffffe
jbe 0x1015a149
mov byte [0], 0
xor ecx, ecx
mov eax, dword [esi + 0x14]
push ebx
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x34]
mov ecx, dword [ecx + 0x18]
call fcn.100a43b0
add esp, 4
jmp 0x1015a024
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ecx, eax
jmp 0x1015a12c
jne 0x1015a024
test ecx, ecx
jg 0x1015a168
mov byte [0], 0
mov eax, dword [esi + 0x34]
xor ecx, ecx
cmp dword [eax], 2
mov eax, dword [esi + 0x14]
sete cl
mov dword [eax + 0x10], ecx
jmp 0x1015a024
mov eax, dword [edi]
cmp byte [eax], 0x3c
jne 0x1015a034
test byte [esi + 0x1c], 1
je 0x1015a1ec
lea eax, [esi + 0x54]
push eax
lea ecx, [esp + 0x6c]
call fcn.10001090
mov edx, ecx
lea ecx, [esp + 0x70]
push edi
call fcn.10159ce0
add esp, 4
test eax, eax
je 0x1015a1ec
mov eax, dword [esi + 0x38]
lea ecx, [eax + 1]
cmp eax, dword [esi + 0x3c]
jge 0x1015a1bf
mov dword [esi + 0x38], ecx
jmp 0x1015a1cd
push ecx
push ecx
lea ecx, [esi + 0x30]
call fcn.10088940
test eax, eax
je 0x1015a1ec
mov eax, dword [esi + 0x38]
movq xmm0, qword [esp + 0x70]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x34]
movq qword [eax + ecx*4 - 0xc], xmm0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x78]
mov dword [ecx - 4], eax
inc dword [esi + 0x1c]
jmp 0x1015a02b
mov ecx, edi
call fcn.10159c50
mov ecx, dword [esi + 0x1c]
mov dword [esi + ecx*4 + 0x20], eax
mov eax, dword [esi + 0x1c]
inc eax
cmp dword [esi + 0x18], 1
mov dword [esi + 0x1c], eax
jne 0x1015a223
cmp eax, 2
jl 0x1015a034
mov eax, dword [esi + 0x20]
mov ebx, eax
movzx ecx, word [esi + 0x24]
jmp 0x1015a236
cmp eax, 3
jl 0x1015a034
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
movzx ecx, word [esi + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp ebx, 0x10000
jae 0x1015a277
mov edx, eax
cmp eax, ebx
ja 0x1015a2b3
mov edi, eax
nop
mov eax, dword [esi + 0x14]
mov ecx, edx
sub ecx, edi
add ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x1c]
mov word [eax + edx*2], cx
inc edx
cmp edx, ebx
jbe 0x1015a250
mov edi, dword [esp + 0x18]
mov dword [esi + 0x1c], 0
jmp 0x1015a02b
sub ebx, eax
mov dword [esp + 0x7c], eax
movzx eax, cx
mov ecx, esi
shl ebx, 0x10
add ebx, eax
push 8
mov dword [esp + 0x84], ebx
call fcn.1008ce10
mov eax, dword [esi + 8]
test eax, eax
je 0x1015a2af
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x7c]
push 8
add ecx, eax
call fcn.100a43b0
add esp, 4
add dword [esi + 0xc], 8
mov dword [esi + 0x1c], 0
jmp 0x1015a02b