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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movzx eax, word [rcx + 0x40]
movzx esi, word [rcx + 0x3e]
mov rdi, rcx
movzx ecx, word [rcx + 0x42]
mov word [rsp + 0x2c], si
mov r11d, r8d
mov qword [rsp + 0x88], rdx
mov edx, eax
mov dword [rsp + 0x28], eax
mov word [rsp + 0x2e], cx
cmp esi, r8d
jne 0x1004dd570
cmp r9d, eax
jne 0x1004dd6c6
movzx eax, word [rdi + 0x42]
mov edx, eax
cmp eax, dword [rsp + 0xa0]
jne 0x1004dd83e
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, r8d
add ax, word [rdi + 0x38]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x98], r9d
sub eax, esi
mov dword [rsp + 0x90], r8d
mov word [rdi + 0x38], ax
movzx edx, ax
call sym.bash.exe__nc_doalloc
mov r11d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x98]
test rax, rax
mov qword [rdi + 0x10], rax
mov r12, rax
je 0x1004dd984
movzx eax, word [rdi + 0x3e]
movzx r10d, word [rdi + 0x38]
sub eax, 1
mov r8d, r10d
mov dword [rsp + 0x24], eax
mov eax, r11d
sub r8d, r11d
sub eax, 1
js 0x1004dd6b2
movsxd rdx, eax
lea r14d, [rax + r8]
mov r15, rdi
mov rax, r12
mov rbx, qword [rsp + 0x88]
mov r12d, r14d
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x90], r11d
mov rdi, qword [r15 + 0x30]
lea rbx, [rbx + rdx*8]
mov dword [rsp + 0x98], r9d
mov r14, rbx
mov rbx, rax
mov r13, qword [r14]
test esi, esi
je 0x1004dd688
nop dword [rax]
xor ebp, ebp
jmp 0x1004dd630
add rbp, 1
cmp esi, ebp
jle 0x1004dd688
mov rcx, qword [rdi + rbp*8]
mov rdx, r13
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004dd628
mov edi, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
sub r14, 8
add eax, edi
cdqe
movzx r10d, byte [rbx + rax]
movsxd rax, r12d
mov byte [rbx + rax], r10b
lea eax, [rdi - 1]
mov dword [rsp + 0x24], eax
lea eax, [r12 - 1]
cmp dword [rsp + 0x20], r12d
je 0x1004dd69f
mov rbx, qword [r15 + 0x10]
mov r13, qword [r14]
mov r12d, eax
mov rdi, qword [r15 + 0x30]
test esi, esi
jne 0x1004dd620
nop dword [rax]
movsxd rax, r12d
sub r14, 8
mov byte [rbx + rax], 0
lea eax, [r12 - 1]
cmp dword [rsp + 0x20], r12d
jne 0x1004dd66f
mov r11d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x98]
mov rdi, r15
movzx eax, word [rdi + 0x40]
mov word [rdi + 0x3e], r11w
mov edx, eax
cmp r9d, eax
je 0x1004dd548
mov eax, dword [rsp + 0x28]
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x98], r9d
lea ebp, [rsi + rax]
mov eax, r9d
add ax, word [rdi + 0x3a]
sub eax, edx
mov word [rdi + 0x3a], ax
movzx eax, ax
lea rdx, [rax*4]
call sym.bash.exe__nc_doalloc
mov qword [rdi + 0x18], rax
mov rdx, rax
test rax, rax
je 0x1004dd984
mov r9d, dword [rsp + 0x98]
movzx r13d, word [rdi + 0x40]
movzx r8d, word [rdi + 0x3a]
mov r11d, dword [rsp + 0x90]
mov r15d, r9d
sub r13d, 1
sub r8d, r9d
sub r15d, 1
js 0x1004dd826
movsxd rax, r15d
movsxd rcx, r11d
mov r12, qword [rdi + 0x30]
mov dword [rsp + 0x24], esi
mov rbx, qword [rsp + 0x88]
add rax, rcx
mov dword [rsp + 0x20], r8d
add r15d, r8d
mov qword [rsp + 0x80], rdi
mov rdi, r12
mov r12, rdx
lea r14, [rbx + rax*8]
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x98], r9d
mov rbx, qword [r14]
cmp dword [rsp + 0x24], ebp
jge 0x1004dd7f0
nop dword [rax + rax]
movzx esi, word [rsp + 0x2c]
jmp 0x1004dd7a8
add rsi, 1
cmp ebp, esi
jle 0x1004dd7f0
mov rcx, qword [rdi + rsi*8]
mov rdx, rbx
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004dd7a0
mov eax, dword [rsp + 0x20]
sub r14, 8
add eax, r13d
sub r13d, 1
cdqe
mov edx, dword [r12 + rax*4]
movsxd rax, r15d
mov dword [r12 + rax*4], edx
lea eax, [r15 - 1]
cmp dword [rsp + 0x20], r15d
je 0x1004dd80a
mov rbx, qword [r14]
mov r15d, eax
cmp dword [rsp + 0x24], ebp
jl 0x1004dd790
nop dword [rax + rax]
movsxd rax, r15d
sub r14, 8
mov dword [r12 + rax*4], 0xffffffff
lea eax, [r15 - 1]
cmp dword [rsp + 0x20], r15d
jne 0x1004dd7df
mov esi, dword [rsp + 0x24]
mov rdi, qword [rsp + 0x80]
mov r11d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x98]
movzx eax, word [rdi + 0x42]
mov word [rdi + 0x40], r9w
mov edx, eax
cmp eax, dword [rsp + 0xa0]
je 0x1004dd55b
mov eax, dword [rsp + 0x28]
mov rcx, qword [rdi + 0x20]
lea ebx, [r11 + r9]
movzx ebp, word [rsp + 0x2e]
add esi, eax
movzx eax, word [rdi + 0x3c]
add ax, word [rsp + 0xa0]
sub eax, edx
add ebp, esi
mov word [rdi + 0x3c], ax
movzx eax, ax
lea rdx, [rax*8]
call sym.bash.exe__nc_doalloc
mov qword [rdi + 0x20], rax
mov rdx, rax
test rax, rax
je 0x1004dd984
movzx r13d, word [rdi + 0x42]
mov r12d, dword [rsp + 0xa0]
movzx r10d, word [rdi + 0x3c]
sub r10d, dword [rsp + 0xa0]
lea eax, [r13 - 1]
mov dword [rsp + 0x24], eax
sub r12d, 1
js 0x1004dd973
movsxd rax, r12d
movsxd r9, ebx
mov r13, qword [rdi + 0x30]
mov dword [rsp + 0x20], r10d
mov rbx, qword [rsp + 0x88]
add rax, r9
mov qword [rsp + 0x80], rdi
add r12d, r10d
mov r15, r13
mov rdi, rdx
lea r14, [rbx + rax*8]
mov rbx, qword [r14]
cmp esi, ebp
jge 0x1004dd950
nop word [rax + rax]
movsxd r13, esi
jmp 0x1004dd901
add r13, 1
cmp ebp, r13d
jle 0x1004dd950
mov rcx, qword [r15 + r13*8]
mov rdx, rbx
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004dd8f8
mov ebx, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
sub r14, 8
add eax, ebx
cdqe
mov rdx, qword [rdi + rax*8]
movsxd rax, r12d
mov qword [rdi + rax*8], rdx
lea eax, [rbx - 1]
mov dword [rsp + 0x24], eax
lea eax, [r12 - 1]
cmp dword [rsp + 0x20], r12d
je 0x1004dd96b
mov rbx, qword [r14]
mov r12d, eax
cmp esi, ebp
jl 0x1004dd8f0
nop dword [rax]
movsxd rax, r12d
sub r14, 8
mov qword [rdi + rax*8], 0
lea eax, [r12 - 1]
cmp dword [rsp + 0x20], r12d
jne 0x1004dd93f
mov rdi, qword [rsp + 0x80]
movzx eax, word [rsp + 0xa0]
mov word [rdi + 0x42], ax
jmp 0x1004dd55b
lea rcx, [0x100541320]
call sym.bash.exe__nc_err_abort
nop
nop word cs:[rax + rax]
nop dword [rax]