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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x10059df0]
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.10015750
mov edx, dword [ebx + 8]
mov esi, 0x10059d98
mov eax, dword [edx + 0x6c]
test eax, eax
push dword [edx + 0x70]
cmovne esi, eax
push esi
call fcn.10017110
test eax, eax
je 0x1000cabc
cmp dword [esp + 0x74], 0
jne 0x1000cabc
mov ecx, dword [ebx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x5c]
lea ebx, [ecx + 0x9c]
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 0x1000c546
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x18]
push 0xa
push eax
call fcn.1000a9b0
add esp, 8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0
call fcn.10039fa0
mov eax, dword [esp + 0x5c]
add esp, 4
mov byte [esp + 0x60], 2
test eax, eax
je 0x1000c5a4
mov ecx, dword [esp + 0x54]
cmp byte [ecx + eax - 1], 0x2f
je 0x1000c5a4
lea edx, [eax + 2]
cmp dword [esp + 0x5c], edx
jae 0x1000c58f
push edx
lea ecx, [esp + 0x58]
call fcn.10003580
test eax, eax
je 0x1000c5a4
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 0x1000caa4
mov edi, 0xfffffffe
jmp 0x1000c5c0
mov byte [ebp + 0xc], 2
lea edx, [esp + 0x54]
cmp dword [esp + 0x58], 0
mov ecx, ebp
cmove edx, ebx
call fcn.10008310
test al, al
je 0x1000ca99
push 0x50
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1000ca99
mov dword [esi + 0x4c], 1
lea ebx, [esi + 0x1c]
mov dword [esi + 0xc], 0x10059da0
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], 0x100533fc
mov byte [esi + 0xa], 0
mov byte [edi + 0xd], 0
mov dword [esi], 0x100533f8
mov dword [ebx], 0x10059da0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov word [ebx + 0xc], 0
mov dword [esi + 0x2c], 0x10059da0
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 0x1000c6ba
push 9
mov ecx, edi
call fcn.10003580
test eax, eax
jne 0x1000c6ba
mov dword [edi + 4], eax
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1000c6d4
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.100398f0
mov dword [esp + 0x14], eax
test esi, esi
je 0x1000c727
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
add dword [ecx + esi + 4], 0xffffffff
jne 0x1000c727
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000ca90
cmp dword [esp + 0x78], 0
je 0x1000c786
cmp dword [edi + 8], 0xa
mov byte [edi + 0xc], 0
jae 0x1000c757
push 0xa
mov ecx, edi
call fcn.10003580
test eax, eax
jne 0x1000c757
mov dword [edi + 4], eax
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x1000c77b
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 [0x1005333c]
mov dword [ecx + 4], eax
mov al, byte [0x10053340]
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 0x1000c7aa
push 4
mov ecx, esi
call fcn.10003580
test eax, eax
jne 0x1000c7aa
mov dword [esi + 4], eax
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x1000c7c8
mov ecx, dword [esi]
mov dword [esi + 4], 3
mov byte [ecx + 3], 0
mov ax, word [0x10053334]
mov word [ecx], ax
mov al, byte [0x10053336]
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 0x1000c7f5
push 0xa
push ecx
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0x28]
call fcn.1000a9b0
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 0x1000c81e
push 0xa
push ecx
mov ecx, dword [ebp + 0x50]
lea edx, [esp + 0x28]
call fcn.1000a9b0
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 0x1000c845
push 0x10
mov ecx, ebx
call fcn.10003580
test eax, eax
jne 0x1000c845
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x1000c87b
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 [0x10053348]
mov dword [ecx + 4], eax
mov eax, dword [0x1005334c]
mov dword [ecx + 8], eax
mov ax, word [0x10053350]
mov word [ecx + 0xc], ax
mov al, byte [0x10053352]
mov byte [ecx + 0xe], al
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
test esi, esi
jle 0x1000c8d1
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 0x1000c89f
mov ecx, esi
mov eax, dword [ebx + 4]
inc ecx
add ecx, eax
cmp dword [ebx + 8], ecx
jae 0x1000c8b9
push ecx
mov ecx, ebx
call fcn.10003580
test eax, eax
je 0x1000c8d1
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 0x1000c8eb
push ecx
mov ecx, ebx
call fcn.10003580
test eax, eax
je 0x1000c907
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 0x1000c95d
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 0x1000c92b
mov ecx, esi
mov eax, dword [ebx + 4]
inc ecx
add ecx, eax
cmp dword [ebx + 8], ecx
jae 0x1000c945
push ecx
mov ecx, ebx
call fcn.10003580
test eax, eax
je 0x1000c95d
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 0x1000c974
push eax
mov ecx, ebx
call fcn.10003580
test eax, eax
je 0x1000c9a6
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 [0x10053374]
mov dword [ecx + 4], eax
mov ax, word [0x10053378]
mov word [ecx + 8], ax
mov al, byte [0x1005337a]
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 0x1000c9f4
lea ecx, [ebx + ebx]
lea eax, [ecx + 2]
cmp dword [esi + 8], eax
jae 0x1000c9d7
push eax
mov ecx, esi
call fcn.10004970
test eax, eax
je 0x1000c9f4
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 0x1000ca04
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 0x1000ca4a
mov ecx, 0x51ce
call fcn.10005270
cmp ebx, 0x2bc
mov edx, 0x1005332c
mov ecx, 0x1005337c
cmovbe ecx, edx
cmp dword [edi], 0
push ecx
push ebx
push eax
mov eax, 0x10053384
cmove eax, edx
push eax
push 0x23
push str._s_s__up_s
push esi
call fcn.1000ce90
add esp, 0x1c
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
je 0x1000ca7c
cmp dword [ebp + 0x60], 0
je 0x1000ca7c
cmp dword [edi], 0
mov ecx, 0x1005332c
push eax
mov eax, 0x10053384
cmove eax, ecx
push eax
push 0xf
push str._s_u_kbps
push esi
call fcn.1000ce90
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x24], 0
jne 0x1000ca90
mov ecx, dword [esp + 0x3c]
push eax
call fcn.10014fc0
mov ebx, dword [esp + 0x1c]
mov edi, 0xfffffffe
mov ebp, dword [ebp + 0x64]
test ebp, ebp
jne 0x1000c5c0
mov eax, dword [esp + 0x40]
cmp eax, 0x10059da0
je 0x1000cabc
add eax, 0xfffffffc
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea ecx, [esp + 0x50]
call fcn.100157f0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret