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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x1005be08]
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x38], eax
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], ebx
call fcn.10016520
mov edx, dword [ebx + 8]
mov esi, 0x1005bda8
mov eax, dword [edx + 0x6c]
test eax, eax
push dword [edx + 0x70]
cmovne esi, eax
push esi
call fcn.10017ee0
test eax, eax
je 0x1000d0bc
cmp dword [esp + 0x74], 0
jne 0x1000d0bc
mov ecx, dword [ebx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x5c]
lea ebx, [ecx + 0xac]
mov eax, dword [eax + 8]
add ebx, eax
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x1c], ebx
inc dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1000cb46
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x18]
push 0xa
push eax
call fcn.1000af20
add esp, 8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0
call fcn.1003bdb0
mov eax, dword [esp + 0x5c]
add esp, 4
mov byte [esp + 0x60], 2
test eax, eax
je 0x1000cba4
mov ecx, dword [esp + 0x54]
cmp byte [ecx + eax - 1], 0x2f
je 0x1000cba4
lea edx, [eax + 2]
cmp dword [esp + 0x5c], edx
jae 0x1000cb8f
push edx
lea ecx, [esp + 0x58]
call fcn.100035c0
test eax, eax
je 0x1000cba4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov byte [ecx + eax], 0x2f
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
inc ecx
mov dword [esp + 0x58], ecx
mov byte [eax + ecx], 0
mov ebp, dword [esp + 0x84]
test ebp, ebp
je 0x1000d0a4
mov edi, 0xfffffffe
jmp 0x1000cbc0
mov byte [ebp + 0xc], 2
lea edx, [esp + 0x54]
cmp dword [esp + 0x58], 0
mov ecx, ebp
cmove edx, ebx
call fcn.10008880
test al, al
je 0x1000d099
push 0x50
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1000d099
mov dword [esi + 0x4c], 1
lea ebx, [esi + 0x1c]
mov dword [esi + 0xc], 0x1005bdb0
lea eax, [esi + 0x3c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov word [esi + 8], di
lea edi, [esi + 0xc]
mov dword [esi + 4], 0x1005545c
mov byte [esi + 0xa], 0
mov byte [edi + 0xd], 0
mov dword [esi], 0x10055458
mov dword [ebx], 0x1005bdb0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov word [ebx + 0xc], 0
mov dword [esi + 0x2c], 0x1005bdb0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x38], 0
mov dword [eax], 0
mov dword [esp + 0x38], eax
lea eax, [esi + 0x40]
mov dword [eax], 0
mov dword [esp + 0x24], eax
lea eax, [esi + 0x44]
mov dword [eax], 0
mov dword [esp + 0x28], eax
lea eax, [esi + 0x48]
mov byte [eax], 0
mov byte [esi + 0x49], 0
cmp dword [edi + 8], 9
mov dword [esp + 0x20], eax
mov byte [edi + 0xc], 0
jae 0x1000ccba
push 9
mov ecx, edi
call fcn.100035c0
test eax, eax
jne 0x1000ccba
mov dword [edi + 4], eax
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1000ccd4
mov eax, dword [edi]
mov dword [edi + 4], 8
mov byte [eax + 8], 0
mov dword [eax], 0x74736864
mov dword [eax + 4], 0x6d64696f
xor ecx, ecx
lea eax, [esi + 4]
test eax, eax
mov eax, dword [esp + 0x2c]
push 1
cmove esi, ecx
cmp dword [esp + 0x7c], ecx
push esi
push dword [esp + 0x38]
mov ecx, dword [eax + 8]
setne byte [esp + 0x40]
push dword [esp + 0x40]
add ecx, 0x50
push ebp
push ecx
mov ecx, dword [ecx + 8]
call fcn.1003b700
mov dword [esp + 0x14], eax
test esi, esi
je 0x1000cd27
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
add dword [ecx + esi + 4], 0xffffffff
jne 0x1000cd27
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000d090
cmp dword [esp + 0x78], 0
je 0x1000cd86
cmp dword [edi + 8], 0xa
mov byte [edi + 0xc], 0
jae 0x1000cd57
push 0xa
mov ecx, edi
call fcn.100035c0
test eax, eax
jne 0x1000cd57
mov dword [edi + 4], eax
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1000cd7b
mov ecx, dword [edi]
mov dword [edi + 4], 9
mov byte [ecx + 9], 0
mov eax, dword [str.dhs2toidm]
mov dword [ecx], eax
mov eax, dword [0x1005539c]
mov dword [ecx + 4], eax
mov al, byte [0x100553a0]
mov byte [ecx + 8], al
mov eax, dword [esp + 0x20]
mov byte [eax], 1
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x50], 4
lea esi, [eax + 0x48]
mov byte [esi + 0xc], 0
jae 0x1000cdaa
push 4
mov ecx, esi
call fcn.100035c0
test eax, eax
jne 0x1000cdaa
mov dword [esi + 4], eax
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x1000cdc8
mov ecx, dword [esi]
mov dword [esi + 4], 3
mov byte [ecx + 3], 0
mov ax, word [0x10055394]
mov word [ecx], ax
mov al, byte [0x10055396]
mov byte [ecx + 2], al
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x1000cdf5
push 0xa
push ecx
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0x28]
call fcn.1000af20
mov eax, dword [esp + 0x28]
add esp, 8
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x1000ce1e
push 0xa
push ecx
mov ecx, dword [ebp + 0x50]
lea edx, [esp + 0x28]
call fcn.1000af20
mov eax, dword [esp + 0x28]
add esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
cmp dword [ebx + 8], 0x10
mov byte [ebx + 0xc], 0
jae 0x1000ce45
push 0x10
mov ecx, ebx
call fcn.100035c0
test eax, eax
jne 0x1000ce45
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x1000ce7b
mov ecx, dword [ebx]
mov dword [ebx + 4], 0xf
mov byte [ecx + 0xf], 0
mov eax, dword [str._bootstrapInfo_]
mov dword [ecx], eax
mov eax, dword [0x100553a8]
mov dword [ecx + 4], eax
mov eax, dword [0x100553ac]
mov dword [ecx + 8], eax
mov ax, word [0x100553b0]
mov word [ecx + 0xc], ax
mov al, byte [0x100553b2]
mov byte [ecx + 0xe], al
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
test esi, esi
jle 0x1000ced1
movsx ecx, byte [ebp + 0x2c]
movsx eax, byte [ebx + 0xc]
shl ecx, 8
or ecx, eax
cmp ecx, 0x102
lea ecx, [esi + esi*2]
je 0x1000ce9f
mov ecx, esi
mov eax, dword [ebx + 4]
inc ecx
add ecx, eax
cmp dword [ebx + 8], ecx
jae 0x1000ceb9
push ecx
mov ecx, ebx
call fcn.100035c0
test eax, eax
je 0x1000ced1
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
add ecx, eax
add eax, esi
push esi
push edi
mov dword [ebx + 4], eax
push ecx
mov byte [ecx + esi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 4]
lea ecx, [eax + 0x1b]
cmp dword [ebx + 8], ecx
jae 0x1000ceeb
push ecx
mov ecx, ebx
call fcn.100035c0
test eax, eax
je 0x1000cf07
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
mov ecx, 6
add edi, eax
mov esi, str.__bootstrapInfo__metadata_
add eax, 0x1a
mov dword [ebx + 4], eax
mov byte [edi + 0x1a], 0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test esi, esi
jle 0x1000cf5d
movsx ecx, byte [ebp + 0x1c]
movsx eax, byte [ebx + 0xc]
shl ecx, 8
or ecx, eax
cmp ecx, 0x102
lea ecx, [esi + esi*2]
je 0x1000cf2b
mov ecx, esi
mov eax, dword [ebx + 4]
inc ecx
add ecx, eax
cmp dword [ebx + 8], ecx
jae 0x1000cf45
push ecx
mov ecx, ebx
call fcn.100035c0
test eax, eax
je 0x1000cf5d
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
add ecx, eax
add eax, esi
push esi
push edi
mov dword [ebx + 4], eax
push ecx
mov byte [ecx + esi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, 0xc
cmp dword [ebx + 8], eax
jae 0x1000cf74
push eax
mov ecx, ebx
call fcn.100035c0
test eax, eax
je 0x1000cfa6
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
add ecx, eax
add eax, 0xb
mov dword [ebx + 4], eax
mov byte [ecx + 0xb], 0
mov eax, dword [str.__metadata_]
mov dword [ecx], eax
mov eax, dword [0x100553d4]
mov dword [ecx + 4], eax
mov ax, word [0x100553d8]
mov word [ecx + 8], ax
mov al, byte [0x100553da]
mov byte [ecx + 0xa], al
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], eax
lea esi, [edi + 0x58]
test ebx, ebx
jle 0x1000cff4
lea ecx, [ebx + ebx]
lea eax, [ecx + 2]
cmp dword [esi + 8], eax
jae 0x1000cfd7
push eax
mov ecx, esi
call fcn.100049c0
test eax, eax
je 0x1000cff4
lea ecx, [ebx + ebx]
mov eax, dword [esi]
add edi, 0x5c
push ecx
push dword [esp + 0x3c]
xor edx, edx
mov dword [edi], ebx
push eax
mov word [ecx + eax], dx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1000d004
mov eax, dword [esi]
lea edi, [esi + 4]
xor ecx, ecx
mov dword [edi], 0
mov word [eax], cx
mov eax, dword [esp + 0x24]
mov ebx, dword [eax]
test ebx, ebx
je 0x1000d04a
mov ecx, 0x51ce
call fcn.100052c0
cmp ebx, 0x2bc
mov edx, 0x1005538c
mov ecx, 0x100553dc
cmovbe ecx, edx
cmp dword [edi], 0
push ecx
push ebx
push eax
mov eax, 0x100553e4
cmove eax, edx
push eax
push 0x23
push str._s_s__up_s
push esi
call fcn.1000d490
add esp, 0x1c
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
je 0x1000d07c
cmp dword [ebp + 0x60], 0
je 0x1000d07c
cmp dword [edi], 0
mov ecx, 0x1005538c
push eax
mov eax, 0x100553e4
cmove eax, ecx
push eax
push 0xf
push str._s_u_kbps
push esi
call fcn.1000d490
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x24], 0
jne 0x1000d090
mov ecx, dword [esp + 0x3c]
push eax
call fcn.10015980
mov ebx, dword [esp + 0x1c]
mov edi, 0xfffffffe
mov ebp, dword [ebp + 0x64]
test ebp, ebp
jne 0x1000cbc0
mov eax, dword [esp + 0x40]
cmp eax, 0x1005bdb0
je 0x1000d0bc
add eax, 0xfffffffc
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea ecx, [esp + 0x50]
call fcn.100165c0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret