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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x4c]
xor edx, edx
push edi
mov edi, dword [esi + 0xb4]
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edx
cmp dword [esi + 0x70], edx
je 0x1000ca0d
mov ecx, dword [esi]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x54], ecx
mov ecx, dword [esi + 0x64]
cmp ecx, eax
jae 0x1000c471
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x1000c474
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xa8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], eax
cmp eax, edx
jle 0x1000c537
mov eax, edi
sub eax, dword [ebp + 8]
lea ecx, [eax + 0x18]
mov dword [ebp - 4], eax
cmp ecx, dword [esi + 4]
jle 0x1000c4f1
test byte [esi + 0xc8], 1
je 0x1000c4cd
cmp dword [esi + 0xd0], edx
je 0x1000c4cd
mov edx, eax
push edx
push str._RO___ld_bytes
push 1
push esi
call fcn.1000b6d0
mov eax, dword [ebp - 4]
add esp, 0x10
xor edx, edx
cmp eax, edx
je 0x1000c4ee
mov eax, dword [esi + 0xb0]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0xcc]
push esi
push ecx
push edx
call eax
add esp, 0x10
xor edx, edx
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xa4]
lea eax, [ecx + ebx*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
mov dword [edi], eax
mov ax, word [ebp - 8]
mov word [edi + 4], 0x52
mov word [edi + 6], ax
mov eax, dword [ebp - 0x44]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
inc ebx
add edi, 0x18
cmp ebx, dword [ebp - 0x1c]
jl 0x1000c494
mov dword [esi + 0xa8], edx
cmp dword [esi + 0x40], edx
jne 0x1000c59d
mov eax, dword [esi + 0x78]
cmp eax, edx
jne 0x1000c55d
mov eax, dword [esi + 0x4c]
add eax, 0x1b58
mov dword [esi + 0x78], 0x1b58
mov dword [esi + 0x74], eax
jmp 0x1000c5a3
mov ecx, dword [esi + 0x4c]
mov ebx, ecx
sub ebx, dword [esi + 0x74]
js 0x1000c5a3
cmp eax, 0x1b58
jae 0x1000c575
mov dword [esi + 0x78], 0x1b58
mov eax, dword [esi + 0x78]
mov ebx, eax
shr ebx, 1
add eax, ebx
mov dword [esi + 0x78], eax
cmp eax, 0x1d4c0
jbe 0x1000c58f
mov dword [esi + 0x78], 0x1d4c0
mov eax, dword [esi + 0x78]
add eax, ecx
or dword [esi + 0x48], 1
mov dword [esi + 0x74], eax
jmp 0x1000c5a3
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
test byte [esi + 0x48], 1
je 0x1000c62a
mov ebx, edi
sub ebx, dword [ebp + 8]
lea ecx, [ebx + 0x18]
cmp ecx, dword [esi + 4]
jle 0x1000c5ff
test byte [esi + 0xc8], 1
je 0x1000c5de
cmp dword [esi + 0xd0], edx
je 0x1000c5de
push ebx
push str._RO___ld_bytes
push 1
push esi
call fcn.1000b6d0
add esp, 0x10
xor edx, edx
cmp ebx, edx
je 0x1000c5fc
mov edx, dword [esi + 0xb0]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xcc]
push edx
push esi
push ebx
push eax
call ecx
add esp, 0x10
xor edx, edx
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x54]
mov cx, word [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x44]
mov word [edi + 4], 0x53
mov word [edi + 6], cx
mov ecx, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
add edi, 0x18
test byte [esi + 0x48], 2
je 0x1000c6b1
mov ebx, edi
sub ebx, dword [ebp + 8]
lea ecx, [ebx + 0x18]
cmp ecx, dword [esi + 4]
jle 0x1000c686
test byte [esi + 0xc8], 1
je 0x1000c665
cmp dword [esi + 0xd0], edx
je 0x1000c665
push ebx
push str._RO___ld_bytes
push 1
push esi
call fcn.1000b6d0
add esp, 0x10
xor edx, edx
cmp ebx, edx
je 0x1000c683
mov edx, dword [esi + 0xb0]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xcc]
push edx
push esi
push ebx
push eax
call ecx
add esp, 0x10
xor edx, edx
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x54]
mov cx, word [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x44]
mov word [edi + 4], 0x54
mov word [edi + 6], cx
mov ecx, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
add edi, 0x18
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 0x38]
mov dword [esi + 0x48], edx
cmp ebx, eax
ja 0x1000c6c3
mov dword [ebp - 0x18], ebx
jmp 0x1000c6c8
mov ebx, eax
mov dword [ebp - 0x18], eax
cmp dword [esi + 0xc0], edx
jne 0x1000c6dc
mov eax, dword [esi + 0x44]
cmp eax, ebx
ja 0x1000c6dc
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sub ecx, ebx
jns 0x1000c78b
lea ebx, [ebx]
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x84]
cmp ecx, eax
je 0x1000c78b
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov edx, dword [esi + 0x98]
mov dword [eax + 4], edx
lea ecx, [esi + 0x94]
mov dword [eax], ecx
mov ecx, dword [esi + 0x98]
mov dword [ecx], eax
dec dword [esi + 0x68]
inc dword [esi + 0x60]
mov edx, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x98], eax
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0x51
mov dword [eax + 0x18], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x1c], edx
inc dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [eax + 0x20], edx
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x30]
xor edx, edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub eax, ebx
js 0x1000c6f0
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x14], eax
cmp eax, edx
jg 0x1000c79f
mov dword [ebp - 0x14], 0xffffffff
cmp dword [esi + 0x6c], edx
jne 0x1000c7af
mov eax, dword [esi + 0x30]
sar eax, 3
mov dword [ebp - 0x1c], eax
jmp 0x1000c7b2
mov dword [ebp - 0x1c], edx
mov ebx, dword [esi + 0x94]
lea eax, [esi + 0x94]
cmp ebx, eax
je 0x1000c955
mov ecx, dword [ebp - 0xc]
lea esp, [esp]
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x1000c7ee
mov dword [ebx + 0x34], 1
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x2c], eax
add eax, dword [ebp - 0x1c]
add eax, ecx
jmp 0x1000c873
mov edx, ecx
sub edx, dword [ebx + 0x28]
js 0x1000c842
inc eax
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x6c]
inc dword [esi + 0x58]
test eax, eax
jne 0x1000c81f
mov edx, dword [esi + 0x30]
mov eax, dword [ebx + 0x2c]
cmp eax, edx
jb 0x1000c80f
mov edx, eax
add eax, edx
mov dword [ebx + 0x2c], eax
add eax, ecx
mov dword [ebp - 0x20], 1
jmp 0x1000c873
cmp eax, 2
jae 0x1000c829
mov eax, dword [ebx + 0x2c]
jmp 0x1000c82c
mov eax, dword [esi + 0x30]
cdq
sub eax, edx
sar eax, 1
add dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebp - 0x20], 1
jmp 0x1000c873
mov edx, dword [ebp - 0x14]
cmp dword [ebx + 0x30], edx
jb 0x1000c945
mov edx, dword [esi + 0xbc]
cmp eax, edx
jle 0x1000c860
test edx, edx
jg 0x1000c945
inc eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
inc dword [ebp - 0x10]
mov dword [ebx + 0x30], 0
mov edx, dword [ebp - 8]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x14], edx
mov edx, dword [ebx + 0x24]
mov dword [ebx + 0x18], ecx
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x20], eax
mov eax, edi
sub eax, dword [ebp + 8]
lea edx, [eax + edx + 0x18]
mov dword [ebp - 4], eax
cmp edx, dword [esi + 4]
jle 0x1000c8e7
test byte [esi + 0xc8], 1
je 0x1000c8c2
cmp dword [esi + 0xd0], 0
je 0x1000c8c2
push eax
push str._RO___ld_bytes
push 1
push esi
call fcn.1000b6d0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
je 0x1000c8e4
mov ecx, dword [esi + 0xb0]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 0xcc]
push esi
push edx
push eax
call ecx
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov dword [edi], edx
mov al, byte [ebx + 0xc]
mov byte [edi + 4], al
mov dl, byte [ebx + 0x10]
mov byte [edi + 5], dl
mov ax, word [ebx + 0x14]
mov word [edi + 6], ax
mov edx, dword [ebx + 0x18]
mov dword [edi + 8], edx
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x20]
mov dword [edi + 0x10], edx
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x24]
add edi, 0x18
test eax, eax
je 0x1000c936
push eax
lea ecx, [ebx + 0x38]
push ecx
push edi
call fcn.10011ca0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
add edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x34]
cmp edx, dword [esi + 0x7c]
jb 0x1000c945
mov dword [esi + 0xc], 0xffffffff
mov ebx, dword [ebx]
lea eax, [esi + 0x94]
cmp ebx, eax
jne 0x1000c7d0
sub edi, dword [ebp + 8]
pop ebx
test edi, edi
jle 0x1000c998
test byte [esi + 0xc8], 1
je 0x1000c980
cmp dword [esi + 0xd0], 0
je 0x1000c980
push edi
push str._RO___ld_bytes
push 1
push esi
call fcn.1000b6d0
add esp, 0x10
mov eax, dword [esi + 0xb0]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xcc]
push eax
push esi
push edi
push ecx
call edx
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x1000c9ca
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
shr eax, 1
mov dword [esi + 0x24], eax
cmp eax, 2
jae 0x1000c9b5
mov dword [esi + 0x24], 2
mov eax, dword [esi + 0x24]
add eax, dword [ebp - 0x14]
mov edx, dword [esi + 8]
imul edx, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x80], edx
cmp dword [ebp - 0x20], 0
je 0x1000c9f7
mov eax, dword [ebp - 0x18]
shr eax, 1
mov dword [esi + 0x24], eax
cmp eax, 2
jae 0x1000c9e4
mov dword [esi + 0x24], 2
mov ecx, dword [esi + 8]
mov eax, 1
mov dword [esi + 0x44], eax
mov dword [esi + 0x80], ecx
jmp 0x1000c9fc
mov eax, 1
cmp dword [esi + 0x44], eax
jae 0x1000ca0d
mov edx, dword [esi + 8]
mov dword [esi + 0x44], eax
mov dword [esi + 0x80], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret