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

Disassembly:
sub esp, 0xe8
push ebx
mov ebx, dword [esp + 0xf0]
push edi
mov edi, dword [esp + 0xf8]
push str.start_kern
push ebx
push edi
mov dword [esp + 0x24], ecx
call fcn.100e3110
add esp, 0xc
test al, al
je 0x100df18f
test byte [edi + 0x10], 0x40
push ebp
push esi
je 0x100defc0
mov esi, dword [edi + 0x44]
or ebp, 0xffffffff
cmp esi, ebp
cmovae esi, ebp
cmp esi, 2
jb 0x100defc0
or dword [edi + 0x90], 0x20
cmp dword [edi + 0x14], 2
mov edx, dword [edi + 0x50]
lea ecx, [edx + 8]
jne 0x100def9e
or edx, ebp
mov ebx, esi
or ebp, ebp
mov eax, dword [ecx]
lea ecx, [ecx + 0x14]
cmp edx, eax
cmovbe eax, ebp
mov edx, eax
mov ebp, edx
sub ebx, 1
jne 0x100def82
mov ebx, dword [esp + 0xfc]
jmp 0x100defb0
lea eax, [esi + esi*4]
mov edx, dword [edx + eax*4 - 0xc]
cmp dword [ecx], edx
cmovbe edx, dword [ecx]
cmp edx, 0xffffffff
cmovae edx, ebp
push 2
push edx
push esi
push 0
push dword [edi + 0x50]
mov ecx, edi
call fcn.100adc60
push edi
push ebx
push 1
lea ecx, [esp + 0x58]
call fcn.100a66a0
mov esi, dword [esp + 0x104]
lea ecx, [esp + 0x4c]
mov dword [esp + 0xd0], esi
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0xf4], 0
call fcn.100dc650
lea ecx, [esp + 0x4c]
mov dword [esp + 0xd8], 8
call fcn.100dc650
mov ecx, edi
xor edx, edx
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x28]
mov ebp, dword [ecx + 0x50]
and eax, 0xfffffffe
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], eax
cmp dword [esp + 0x30], edx
jbe 0x100df171
mov ebx, dword [esp + 0x6c]
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0x2c], eax
add eax, ebp
mov dword [esp + 0x28], eax
test dword [eax + 4], esi
je 0x100df15b
mov ecx, dword [esp + 0x54]
mov esi, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x70], 1
mov eax, dword [ecx + 0x60]
mov ebp, dword [eax + 0x44]
mov dword [esp + 0x74], ebp
mov edi, dword [ecx + 0x60]
mov eax, dword [edi + 0x40]
cmp edx, eax
jne 0x100df08e
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x50]
mov al, byte [eax + ecx*4 + 0xf]
jmp 0x100df090
xor al, al
xor ecx, ecx
movzx eax, al
cmp byte [esp + 0x62], cl
cmovne ecx, eax
lea eax, [ebp - 1]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x63], cl
mov dword [esp + 0x1c], eax
cmp edx, eax
jge 0x100df149
mov edx, dword [esp + 0x54]
inc esi
mov dword [esp + 0x50], esi
mov eax, dword [edx + 0x60]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 0x50]
lea edi, [eax + ecx*4]
push edi
push edx
lea ecx, [esp + 0x60]
call fcn.100e2c80
mov ebp, eax
cmp ebp, 1
je 0x100df13b
test ebx, ebx
je 0x100df0ec
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl ecx, 8
add edx, ecx
jmp 0x100df0ee
xor edx, edx
mov eax, dword [esp + 0x5c]
test dword [edi + 4], eax
je 0x100df137
mov eax, dword [esp + 0x10]
test al, al
je 0x100df104
cmp al, byte [edi + 0xf]
jne 0x100df137
mov eax, dword [esp + 0x64]
test eax, eax
je 0x100df19a
push dword [esp + 0x68]
push edx
push edi
call eax
mov ebx, dword [esp + 0x78]
xor ecx, ecx
mov esi, dword [esp + 0x5c]
add esp, 0xc
test al, al
setne cl
cmp ecx, 1
je 0x100df19e
mov cl, byte [esp + 0x63]
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x100df145
cmp esi, dword [esp + 0x1c]
jl 0x100df0b3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x100]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x104]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x30]
jb 0x100df043
mov ebx, dword [esp + 0xfc]
push str.end_kern
push ebx
push ecx
call fcn.100e3110
push dword [esp + 0xc8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xe8
ret 0x10
test ebp, ebp
jne 0x100df13b
dec dword [esp + 0x70]
test ebx, ebx
je 0x100df1ad
add ebx, 2
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x24]
lea eax, [esi + esi*4]
shl eax, 2
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov ebp, dword [eax + ebp]
mov eax, dword [esp + 0x20]
mov edx, dword [edx]
mov dword [esp + 0x34], ebp
mov ecx, dword [eax]
movzx eax, byte [ecx + 0xa]
lea ebx, [ecx + 0xe]
movzx edi, byte [ecx + 8]
lea ebp, [ecx + 0xe]
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx + 9]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x1c]
shl edi, 8
add edi, eax
lea eax, [ebx*2]
add eax, ebp
add eax, edi
mov dword [esp + 0x28], eax
add eax, edi
mov dword [esp + 0x40], eax
movzx eax, byte [ecx + 0xc]
movzx ecx, byte [ecx + 0xb]
mov dword [esp + 0x38], ecx
imul ecx, eax
mov dword [esp + 0x3c], ecx
cmp edx, edi
jb 0x100df224
mov ecx, 0x10161c90
jmp 0x100df22f
lea ecx, [ebx*2]
add ecx, ebp
add ecx, edx
mov ebp, dword [esp + 0x34]
movzx edx, byte [ecx]
cmp ebp, edi
jb 0x100df241
mov ecx, 0x10161c90
jmp 0x100df247
mov ecx, dword [esp + 0x28]
add ecx, ebp
mov ebx, dword [esp + 0x6c]
cmp edx, dword [esp + 0x38]
jae 0x100df404
movzx ecx, byte [ecx]
cmp ecx, eax
jae 0x100df404
imul eax, edx
add eax, ecx
cmp eax, dword [esp + 0x3c]
jb 0x100df272
mov eax, 0x10161c90
jmp 0x100df276
add eax, dword [esp + 0x40]
movzx eax, byte [eax]
cmp eax, dword [esp + 0x1c]
jb 0x100df286
mov eax, 0x10161c90
jmp 0x100df28d
mov ecx, dword [esp + 0x44]
lea eax, [ecx + eax*2]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx eax, dx
movsx edi, dx
je 0x100df404
cmp dword [esp + 0x48], 4
jne 0x100df33c
cmp byte [esp + 0x108], 0
je 0x100df2e9
cwde
cdq
push edx
push eax
mov eax, dword [esp + 0x104]
push dword [eax + 0x4c]
push dword [eax + 0x48]
call fcn.10107f70
mov edi, eax
add edi, 0x8000
adc edx, 0
shrd edi, edx, 0x10
mov eax, dword [esp + 0x20]
cmp byte [eax + 4], 0
je 0x100df312
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax + ecx + 0xc], edi
mov edi, dword [esp + 0x100]
or dword [edi + 0x90], 8
jmp 0x100df3b9
mov edx, dword [esp + 0x18]
mov eax, edi
mov ecx, dword [esp + 0x2c]
sar eax, 1
sub edi, eax
add dword [ecx + edx], eax
lea eax, [esi + esi*4]
lea ecx, [edx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edx]
add eax, edi
add dword [ecx + 8], edi
mov dword [ecx], eax
jmp 0x100df3b9
cmp byte [esp + 0x108], 0
je 0x100df36b
cwde
cdq
push edx
push eax
mov eax, dword [esp + 0x104]
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.10107f70
mov edi, eax
add edi, 0x8000
adc edx, 0
shrd edi, edx, 0x10
mov eax, dword [esp + 0x20]
cmp byte [eax + 4], 0
je 0x100df391
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx + 8], edi
mov ecx, dword [esp + 0x100]
or dword [ecx + 0x90], 8
jmp 0x100df3c0
mov edx, dword [esp + 0x18]
mov eax, edi
mov ecx, dword [esp + 0x2c]
sar eax, 1
sub edi, eax
add dword [ecx + edx + 4], eax
lea eax, [esi + esi*4]
lea ecx, [edx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edx + 4]
add eax, edi
add dword [ecx + 0xc], edi
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x100]
mov edi, dword [ecx + 0x44]
inc esi
mov ebx, dword [esp + 0x14]
cmp esi, edi
cmovbe edi, esi
mov eax, edi
sub eax, ebx
cmp eax, 2
jb 0x100df41d
or dword [ecx + 0x90], 0x20
mov esi, dword [ecx + 0x50]
push 0xffffffffffffffff
push edi
push ebx
push esi
call fcn.100adbe0
mov ecx, dword [esp + 0x100]
push 3
push eax
push edi
push ebx
push esi
call fcn.100adc60
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x100]
mov ebp, dword [esp + 0x24]
mov edx, esi
mov esi, dword [esp + 0x104]
jmp 0x100df15c
mov esi, dword [esp + 0x50]
mov edx, esi
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x104]
jmp 0x100df15c