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

Disassembly:
sub esp, 0x210
mov eax, dword [0x1036a00c]
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 + 0x102e47a8]
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 + 0x102e4794]
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.102287b0
cmp byte [esp + 0xae], 0
mov dword [esp + 0xa8], eax
jne 0x101d979d
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.102287b0
cmp byte [esp + 0xae], 0
mov byte [esp + 0xac], 0
jne 0x101d979d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
call fcn.10229180
test al, al
je 0x101d979d
lea ecx, [esp + 0x68]
call fcn.10228490
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x101d94ec
cmp dword [ecx + 0x104], 0
jne 0x101d94ec
mov edx, dword [esp + 0x9c]
cmp ecx, edx
je 0x101d94ec
mov eax, dword [edx + 0xec]
cmp eax, ecx
je 0x101d94e2
mov edx, eax
mov eax, dword [eax + 0xec]
cmp eax, ecx
jne 0x101d94d6
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 0x101d958c
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 0x101d9585
lea ecx, [ebp + 4]
mov eax, ecx
test eax, eax
jns 0x101d9554
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 0x101d957d
test edi, edi
je 0x101d9809
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 0x101d9510
test ebp, ebp
jne 0x101d95d0
test edi, edi
je 0x101d95ac
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.10154910
cmp byte [esp + 0x13], 0
mov bl, 1
setne al
lea eax, [eax*2 + 1]
mov byte [esi + 8], al
jmp 0x101d979f
cmp ebp, 1
jle 0x101d9618
test edi, edi
je 0x101d95de
lea ecx, [edi + ebp*4]
jmp 0x101d95e0
xor ecx, ecx
add ecx, 0xfffffffc
cmp edi, ecx
jae 0x101d9618
mov eax, ecx
sub eax, edi
sar eax, 2
sub eax, 1
je 0x101d95fb
bsr eax, eax
xor eax, 0x1f
jmp 0x101d9600
mov eax, 0x20
push dword [esp + 0x24]
mov edx, edi
push ecx
mov ecx, 0x20
sub ecx, eax
add ecx, ecx
call fcn.10225ec0
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 0x101d9640
nop
mov eax, dword [edi + ecx*4]
inc ecx
mov dword [edx + 0xec], eax
mov edx, eax
cmp ecx, ebp
jl 0x101d9630
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.10237a90
add esp, 8
test al, al
je 0x101d9684
mov esi, dword [esi + 0xec]
test esi, esi
jne 0x101d9660
mov edi, dword [edi + 0xec]
test edi, edi
jne 0x101d9658
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
lea edx, [esp + 0x2c]
call fcn.10225300
add esp, 4
test al, al
jne 0x101d96ac
xor bl, bl
jmp 0x101d97a5
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.10154910
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.101d8e70
add esp, 0x10
lea ecx, [esp + 0x5c]
call fcn.10154230
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.102245d0
push dword [esp + 0xd8]
mov ecx, esi
call fcn.10154330
mov ecx, dword [esp + 0x5c]
mov byte [esi + 8], bl
test ecx, ecx
je 0x101d9799
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101d9799
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x101d97a5
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 0x101d97b6
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x80]
test eax, eax
je 0x101d97c7
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x101d97d5
push eax
call ebp
add esp, 4
mov ecx, dword [esp + 0x1ec]
test ecx, ecx
je 0x101d97e5
call fcn.101d89c0
lea ecx, [esp + 0x34]
call fcn.101cf870
mov ecx, dword [esp + 0x21c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102af935
add esp, 0x210
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3