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

Disassembly:
sub esp, 0x210
mov eax, dword [0x1036900c]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x224]
mov ebx, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xfc]
movzx edx, byte [esi + 8]
mov dword [esp + 0x48], ecx
movzx ecx, byte [ebx + 8]
shr edx, 1
shr ecx, 1
and edx, 1
and ecx, 1
mov dword [esp + 0x34], 0x1000
push edi
mov dword [esp + 0x3c], 0x1000
lea eax, [edx + eax*2]
mov dword [esp + 0x40], 0
lea eax, [ecx + eax*2]
mov dword [esp + 0x44], 0
mov edi, dword [eax*4 + 0x102e3728]
mov dword [esp + 0x1e8], 0
mov dword [esp + 0x1ec], 0
mov dword [esp + 0x204], 0
lea eax, [edx + edi*2]
mov byte [esp + 0x20c], 0
mov al, byte [ecx + eax*2 + 0x102e3714]
lea ecx, [esp + 0x100]
mov byte [esp + 0x13], al
xor eax, eax
cmp edi, 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
cmovne eax, edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x6c], eax
mov eax, ebx
cmovne eax, esi
mov word [esp + 0x54], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x9c], ecx
movzx eax, byte [eax + 8]
and eax, 1
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
lea eax, [eax*2 - 1]
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov word [esp + 0xac], 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
mov byte [esp + 0xae], 0
call fcn.10228720
cmp byte [esp + 0xae], 0
mov dword [esp + 0xa8], eax
jne 0x101d96ad
movzx eax, byte [esp + 0xac]
lea ecx, [esp + 0x68]
mov eax, dword [esp + eax*4 + 0xa0]
dec dword [esp + 0x94]
cmp edi, 4
mov dword [esp + 0x20], eax
cmovne esi, ebx
mov dword [esp + 0x70], esi
movzx eax, byte [esi + 8]
and eax, 1
lea eax, [eax*2 - 1]
mov dword [esp + 0xa4], eax
call fcn.10228720
cmp byte [esp + 0xae], 0
mov byte [esp + 0xac], 0
jne 0x101d96ad
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
call fcn.102290f0
test al, al
je 0x101d96ad
lea ecx, [esp + 0x68]
call fcn.10228400
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x101d93fc
cmp dword [ecx + 0x104], 0
jne 0x101d93fc
mov edx, dword [esp + 0x9c]
cmp ecx, edx
je 0x101d93fc
mov eax, dword [edx + 0xec]
cmp eax, ecx
je 0x101d93f2
mov edx, eax
mov eax, dword [eax + 0xec]
cmp eax, ecx
jne 0x101d93e6
mov dword [edx + 0xec], 0
movzx eax, byte [esp + 0xac]
lea ebx, [esp + 0x100]
xor ebp, ebp
xor esi, esi
xor edi, edi
mov edx, dword [esp + eax*4 + 0xa0]
mov dword [esp + 0x1c], edx
nop dword [eax]
cmp dword [ebx + 0x104], 0
je 0x101d949c
cmp dword [esp + 0x20], 1
sete cl
cmp edx, 1
sete al
cmp byte [ebx + 0x10d], 0
movzx edx, al
movzx eax, cl
cmovne edx, eax
mov eax, ebp
inc ebp
mov byte [ebx + 0x110], dl
mov dword [esp + 0x14], eax
cmp ebp, esi
jle 0x101d9495
lea ecx, [ebp + 4]
mov eax, ecx
test eax, eax
jns 0x101d9464
add eax, 3
sar eax, 2
add eax, ecx
mov dword [esp + 0x30], eax
lea esi, [eax*4]
push esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov edi, eax
test esi, esi
je 0x101d948d
test edi, edi
je 0x101d9719
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [edi + eax*4], ebx
mov ebx, dword [ebx + 0xec]
test ebx, ebx
jne 0x101d9420
test ebp, ebp
jne 0x101d94e0
test edi, edi
je 0x101d94bc
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.101547b0
cmp byte [esp + 0x13], 0
mov bl, 1
setne al
lea eax, [eax*2 + 1]
mov byte [esi + 8], al
jmp 0x101d96af
cmp ebp, 1
jle 0x101d9528
test edi, edi
je 0x101d94ee
lea ecx, [edi + ebp*4]
jmp 0x101d94f0
xor ecx, ecx
add ecx, 0xfffffffc
cmp edi, ecx
jae 0x101d9528
mov eax, ecx
sub eax, edi
sar eax, 2
sub eax, 1
je 0x101d950b
bsr eax, eax
xor eax, 0x1f
jmp 0x101d9510
mov eax, 0x20
push dword [esp + 0x24]
mov edx, edi
push ecx
mov ecx, 0x20
sub ecx, eax
add ecx, ecx
call fcn.10225e30
add esp, 8
mov edx, dword [edi]
mov ecx, 1
mov ebx, edx
mov dword [esp + 0x14], ebx
mov eax, dword [edx]
mov dword [eax + 4], edx
cmp ebp, ecx
jle 0x101d9550
nop
mov eax, dword [edi + ecx*4]
inc ecx
mov dword [edx + 0xec], eax
mov edx, eax
cmp ecx, ebp
jl 0x101d9540
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
mov dword [edx + 0xec], 0
call ebp
add esp, 4
mov edi, ebx
mov esi, edi
nop word [eax + eax]
lea eax, [esp + 0x34]
mov edx, esi
push eax
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.10237a00
add esp, 8
test al, al
je 0x101d9594
mov esi, dword [esi + 0xec]
test esi, esi
jne 0x101d9570
mov edi, dword [edi + 0xec]
test edi, edi
jne 0x101d9568
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
lea edx, [esp + 0x2c]
call fcn.10225270
add esp, 4
test al, al
jne 0x101d95bc
xor bl, bl
jmp 0x101d96b5
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.101547b0
cmp byte [esp + 0x13], 0
lea eax, [esp + 0xb0]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
setne bl
push eax
push dword [esp + 0x24]
mov dword [esp + 0xbc], esi
push dword [esp + 0x2c]
lea ebx, [ebx*2 + 1]
mov dword [esp + 0xdc], 0
mov byte [esi + 8], bl
mov dword [esp + 0xe0], 0
mov word [esp + 0xe4], 1
mov byte [esp + 0xe6], 0
call fcn.101d8d80
add esp, 0x10
lea ecx, [esp + 0x5c]
call fcn.101540d0
lea eax, [esp + 0x5c]
mov byte [esp + 0x64], bl
lea edx, [esp + 0xd8]
mov dword [esp + 0xd8], eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov word [esp + 0xfc], 1
mov byte [esp + 0xfe], 0
call fcn.10224540
push dword [esp + 0xd8]
mov ecx, esi
call fcn.101541d0
mov ecx, dword [esp + 0x5c]
mov byte [esi + 8], bl
test ecx, ecx
je 0x101d96a9
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101d96a9
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x101d96b5
xor bl, bl
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x101d96c6
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x80]
test eax, eax
je 0x101d96d7
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x101d96e5
push eax
call ebp
add esp, 4
mov ecx, dword [esp + 0x1ec]
test ecx, ecx
je 0x101d96f5
call fcn.101d88d0
lea ecx, [esp + 0x34]
call fcn.101cf780
mov ecx, dword [esp + 0x21c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102af895
add esp, 0x210
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3