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

Disassembly:
sub esp, 0xf0
push ebx
mov ebx, dword [esp + 0xf8]
push edi
mov edi, dword [esp + 0x100]
push str.start_kern
push ebx
push edi
mov dword [esp + 0x1c], ecx
call fcn.100e3110
add esp, 0xc
test al, al
je 0x100df6b0
test byte [edi + 0x10], 0x40
push ebp
push esi
je 0x100df4e0
mov esi, dword [edi + 0x44]
or ebp, 0xffffffff
cmp esi, ebp
cmovae esi, ebp
cmp esi, 2
jb 0x100df4e0
or dword [edi + 0x90], 0x20
cmp dword [edi + 0x14], 2
mov edx, dword [edi + 0x50]
lea ecx, [edx + 8]
jne 0x100df4be
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 0x100df4a2
mov ebx, dword [esp + 0x104]
jmp 0x100df4d0
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 + 0x60]
call fcn.100a66a0
mov esi, dword [esp + 0x10c]
lea ecx, [esp + 0x54]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xf8], 0xffffffff
mov dword [esp + 0xfc], 0
call fcn.100dc650
lea ecx, [esp + 0x54]
mov dword [esp + 0xe0], 8
call fcn.100dc650
mov ecx, edi
xor edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x28]
mov edi, dword [ecx + 0x44]
and eax, 0xfffffffe
mov ebp, dword [ecx + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
test edi, edi
je 0x100df692
mov edi, dword [esp + 0x74]
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0x24], eax
add eax, ebp
mov dword [esp + 0x2c], eax
test dword [eax + 4], esi
je 0x100df67c
mov ecx, dword [esp + 0x5c]
mov esi, edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x78], 1
mov eax, dword [ecx + 0x60]
mov ebp, dword [eax + 0x44]
mov dword [esp + 0x7c], ebp
mov ebx, dword [ecx + 0x60]
mov eax, dword [ebx + 0x40]
cmp edx, eax
jne 0x100df5ac
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x50]
mov al, byte [eax + ecx*4 + 0xf]
jmp 0x100df5ae
xor al, al
xor ecx, ecx
movzx eax, al
cmp byte [esp + 0x6a], cl
cmovne ecx, eax
lea eax, [ebp - 1]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x6b], cl
mov dword [esp + 0x28], eax
cmp edx, eax
jge 0x100df66a
mov edx, dword [esp + 0x5c]
inc esi
mov dword [esp + 0x58], esi
mov eax, dword [edx + 0x60]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 0x50]
lea ebx, [eax + ecx*4]
push ebx
push edx
lea ecx, [esp + 0x68]
call fcn.100e2c80
mov ebp, eax
cmp ebp, 1
je 0x100df65c
test edi, edi
je 0x100df60a
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
shl edx, 8
add edx, ecx
jmp 0x100df60c
xor edx, edx
mov eax, dword [esp + 0x64]
test dword [ebx + 4], eax
je 0x100df658
mov eax, dword [esp + 0x20]
test al, al
je 0x100df622
cmp al, byte [ebx + 0xf]
jne 0x100df658
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x100df6bb
push dword [esp + 0x70]
push edx
push ebx
call eax
mov edi, dword [esp + 0x80]
xor ecx, ecx
mov esi, dword [esp + 0x64]
add esp, 0xc
test al, al
setne cl
cmp ecx, 1
je 0x100df6bf
mov cl, byte [esp + 0x6b]
mov dword [esp + 0x20], ecx
test ebp, ebp
je 0x100df666
cmp esi, dword [esp + 0x28]
jl 0x100df5d1
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x108]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10c]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x34]
jb 0x100df561
mov ebx, dword [esp + 0x104]
push str.end_kern
push ebx
push ecx
call fcn.100e3110
push dword [esp + 0xd0]
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, 0xf0
ret 0x10
test ebp, ebp
jne 0x100df65c
dec dword [esp + 0x78]
test edi, edi
je 0x100df6ce
add edi, 2
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x2c]
lea ebp, [esi + esi*4]
push 0x10161c90
mov dword [esp + 0x50], 0
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebp*4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax]
movzx ecx, byte [edx + 8]
lea eax, [edx + 0x10]
mov dword [esp + 0x48], eax
movzx eax, byte [edx + 9]
shl ecx, 8
add ecx, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x44]
push eax
call fcn.1008bad0
mov ecx, 0x100
movsx ecx, cx
movzx edx, byte [eax + 4]
movzx eax, byte [eax + 5]
movsx edx, dx
imul edx, ecx
add dx, ax
movsx ebx, dx
je 0x100df88c
cmp dword [esp + 0x30], 4
jne 0x100df7ca
cmp byte [esp + 0x110], 0
je 0x100df77f
movsx eax, dx
cdq
push edx
push eax
mov eax, dword [esp + 0x10c]
push dword [eax + 0x4c]
push dword [eax + 0x48]
call fcn.10107f70
mov ebx, eax
add ebx, 0x8000
adc edx, 0
shrd ebx, edx, 0x10
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
je 0x100df7a4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x108]
mov dword [eax + ebp*4 + 0xc], ebx
or dword [edi + 0x90], 8
jmp 0x100df841
mov edx, dword [esp + 0x14]
mov eax, ebx
mov ecx, dword [esp + 0x24]
sar eax, 1
sub ebx, eax
add dword [ecx + edx], eax
lea eax, [esi + esi*4]
lea ecx, [edx + eax*4]
mov eax, dword [edx + ebp*4]
add eax, ebx
add dword [ecx + 8], ebx
mov dword [ecx], eax
jmp 0x100df841
cmp byte [esp + 0x110], 0
je 0x100df7fb
movsx eax, dx
cdq
push edx
push eax
mov eax, dword [esp + 0x10c]
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.10107f70
mov ebx, eax
add ebx, 0x8000
adc edx, 0
shrd ebx, edx, 0x10
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
je 0x100df81d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x108]
mov dword [eax + ebp*4 + 8], ebx
or dword [ecx + 0x90], 8
jmp 0x100df848
mov edx, dword [esp + 0x14]
mov eax, ebx
mov ecx, dword [esp + 0x24]
sar eax, 1
sub ebx, eax
add dword [ecx + edx + 4], eax
lea eax, [esi + esi*4]
lea ecx, [edx + eax*4]
mov eax, dword [edx + ebp*4 + 4]
add eax, ebx
add dword [ecx + 0xc], ebx
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x108]
mov edi, dword [ecx + 0x44]
inc esi
mov ebx, dword [esp + 0x10]
cmp esi, edi
cmovbe edi, esi
mov eax, edi
sub eax, ebx
cmp eax, 2
jb 0x100df8a5
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 + 0x108]
push 3
push eax
push edi
push ebx
push esi
call fcn.100adc60
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x108]
mov ebp, dword [esp + 0x1c]
mov edx, esi
mov esi, dword [esp + 0x10c]
jmp 0x100df67d
mov esi, dword [esp + 0x58]
mov edx, esi
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10c]
jmp 0x100df67d