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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x00407100]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x68], r9
mov rax, r8
mov qword [rsp + 0xc8], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x110], rdx
mov qword [rsp + 0x130], rax
mov qword [rsp + 0xe0], r9
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov dword [r9], ebx
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x118]
mov r8w, 1
xor edx, edx
mov rcx, qword [rdi + 0x10]
call sub.imagehlp.dll_ImageDirectoryEntryToData
mov rsi, rax
cmp rax, rbx
je 0x40454e
mov qword [rsp + 0x70], rax
mov edx, dword [rsi + 0xc]
cmp edx, ebx
je 0x40383a
mov r8, rdi
mov rcx, r14
call fcn.00403674
mov r12, rax
cmp rax, rbx
je 0x403830
lea rax, [0x00401918]
mov qword [rsp + 0x138], rax
lea rax, [0x00401920]
mov qword [rsp + 0x140], rax
lea rax, [0x00401930]
mov qword [rsp + 0x148], rax
mov r15d, ebx
lea r13, [rsp + 0x138]
mov r8, qword [r13]
cmp byte [r8], 0x2e
jne 0x40380e
mov rcx, r12
mov al, byte [r12]
cmp al, 0x2e
je 0x4037f7
cmp al, bl
je 0x4037f7
add rcx, 1
mov al, byte [rcx]
cmp al, 0x2e
jne 0x4037e9
cmp byte [rcx], bl
je 0x403822
mov rdx, r8
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, ebx
je 0x40454e
jmp 0x403822
mov rdx, r12
mov rcx, r8
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, ebx
je 0x40454e
add r15d, 1
add r13, 8
cmp r15d, 3
jb 0x4037d4
add rsi, 0x14
jne 0x40377a
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x108], r15
mov rax, qword [rdi + 0x18]
lea rcx, [rax + 4]
mov qword [rsp + 0xf8], rcx
mov esi, ebx
cmp word [rax + 0x18], 0x20b
sete sil
mov dword [rsp + 0x54], esi
mov dword [rsp + 0xd8], esi
lea r9, [rsp + 0xb0]
mov r8w, 0xb
xor edx, edx
mov rcx, qword [rdi + 0x10]
call sub.imagehlp.dll_ImageDirectoryEntryToData
mov qword [rsp + 0xf0], rax
cmp rax, rbx
je 0x4038e7
cmp byte [r14 + 5], bl
jne 0x4038e7
cmp byte [r14 + 4], bl
jne 0x4038e7
cmp esi, ebx
je 0x4038b9
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xe0], ebx
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xe4], ebx
jmp 0x4038cd
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xd0], ebx
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xd4], ebx
mov qword [rsp + 0xf0], rbx
mov dword [rsp + 0xb0], ebx
mov rax, qword [rsp + 0x68]
mov dword [rax], 1
mov r13, qword [rsp + 0x88]
cmp r15, rbx
je 0x40408b
mov edx, dword [r15 + 0xc]
cmp edx, ebx
je 0x40408b
mov r8, rdi
mov rcx, r14
call fcn.00403674
mov r12, rax
cmp rax, rbx
je 0x404075
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.00404c0c
mov rsi, rax
mov qword [rsp + 0xa0], rax
cmp rax, rbx
jne 0x403996
mov rax, qword [r14 + 0x20]
cmp rax, rbx
je 0x403974
test byte [r14], 0x10
je 0x403960
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r12
mov rdx, qword [rdi]
lea ecx, [r9 + 3]
call rax
jmp 0x403974
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r12
mov rdx, qword [rdi]
lea ecx, [r9 + 3]
call rax
cmp byte [r14 + 5], bl
je 0x404075
mov r9, rsi
mov r8, r12
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.00402348
jmp 0x404075
mov rax, qword [r14 + 0x20]
cmp rax, rbx
je 0x4039cf
test byte [r14], 0x10
je 0x4039bb
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r12
mov rdx, qword [rdi]
lea ecx, [r9 + 5]
call rax
jmp 0x4039cf
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r12
mov rdx, qword [rdi]
lea ecx, [r9 + 5]
call rax
lea r9, [rsp + 0x128]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x10]
call sub.imagehlp.dll_ImageDirectoryEntryToData
mov qword [rsp + 0xd0], rax
cmp rax, rbx
je 0x404075
cmp byte [r14 + 5], bl
jne 0x403a15
mov eax, dword [r15 + 4]
cmp eax, ebx
je 0x403a15
mov rcx, qword [rsp + 0xf8]
cmp eax, dword [rcx + 4]
je 0x404075
mov r8, rdi
mov edx, dword [r15]
mov rcx, r14
call fcn.00403674
mov rsi, rax
cmp rax, rbx
je 0x404075
cmp dword [rsp + 0x54], ebx
je 0x403a3f
mov eax, ebx
cmp qword [rsi], rbx
sete al
jmp 0x403a46
mov eax, ebx
cmp dword [rsi], ebx
sete al
cmp eax, ebx
jne 0x404075
cmp byte [r14 + 5], bl
jne 0x403a61
mov r15, rbx
mov qword [rsp + 0x100], rbx
jmp 0x403a84
mov r9, qword [rsp + 0xa0]
mov r8, r12
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.00402348
mov r15, rax
mov qword [rsp + 0x100], rax
mov eax, ebx
mov dword [rsp + 0x58], ebx
cmp dword [rsp + 0x54], ebx
je 0x403b04
mov r12, rsi
mov qword [rsp + 0x78], rsi
cmp qword [rsi], rbx
je 0x403ab3
add eax, 1
add r12, 8
cmp qword [r12], rbx
jne 0x403a9d
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x78], r12
mov ecx, eax
shl rcx, 3
mov r12d, 1
mov rdx, r12
call qword [sym.imp.msvcrt.dll_calloc]
mov r8, rax
mov qword [rsp + 0xa8], rax
cmp rax, rbx
je 0x404070
mov rax, rsi
mov qword [rsp + 0x78], rax
mov r9, r8
mov qword [rsp + 0x90], r8
mov rcx, qword [rsp + 0xb8]
mov r10, qword [rsp + 0x98]
jmp 0x403b88
mov r13, rsi
mov qword [rsp + 0x88], rsi
cmp dword [rsi], ebx
je 0x403b34
mov r12d, 1
add eax, r12d
add r13, 4
cmp dword [r13], ebx
jne 0x403b19
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x58], eax
jmp 0x403b3a
mov r12d, 1
mov ecx, eax
shl rcx, 2
mov rdx, r12
call qword [sym.imp.msvcrt.dll_calloc]
mov rcx, rax
mov qword [rsp + 0xb8], rax
cmp rax, rbx
je 0x404069
mov r13, rsi
mov qword [rsp + 0x88], rsi
mov r10, rax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x78]
mov r8, qword [rsp + 0xa8]
mov r9, qword [rsp + 0x90]
mov dword [rsp + 0x80], r12d
or dword [rsp + 0x84], 0xffffffff
lea rdx, [rsp + 0x84]
mov qword [rsp + 0xe8], rdx
mov r12d, ebx
mov dword [rsp + 0x50], ebx
mov edx, dword [rsp + 0x54]
mov esi, dword [rsp + 0x58]
cmp r12d, esi
jae 0x403ee4
mov esi, ebx
cmp edx, ebx
je 0x403c29
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdi
mov rdx, rax
mov rcx, r14
call fcn.00402f10
cmp eax, ebx
jne 0x403c8b
mov ecx, 1
mov esi, ecx
mov dword [rsp + 0xc0], ecx
jmp 0x403c90
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov r9, rcx
mov r8, rdi
mov rdx, r13
mov rcx, r14
call fcn.004032c8
cmp eax, ebx
mov ecx, 1
cmove esi, ecx
mov dword [rsp + 0xc0], esi
jmp 0x403c90
mov ecx, 1
mov edx, dword [rsp + 0x54]
jmp 0x403d00
cmp esi, ebx
je 0x403e6a
cmp r15, rbx
je 0x403d11
mov dword [r15 + 0x10], ebx
cmp qword [r14 + 0x20], rbx
je 0x403e64
cmp edx, ebx
je 0x403d38
movabs rax, 0x8000000000000000
mov rcx, qword [rsp + 0x78]
test qword [rcx], rax
mov eax, ebx
setne al
jmp 0x403d44
mov eax, dword [r13]
shr eax, 0x1f
mov rcx, qword [rsp + 0x78]
cmp eax, ebx
je 0x403db1
cmp edx, ebx
je 0x403d51
mov rsi, qword [rcx]
jmp 0x403d56
movzx esi, word [r13]
mov rax, qword [rsp + 0xd0]
sub si, word [rax + 0x10]
lea r12, [rsp + 0x158]
lea r8, [0x00401908]
mov edx, 0x1f
lea rcx, [rsp + 0x15a]
call fcn.004056c8
movzx ecx, si
mov r8d, 0x10
lea rdx, [rsp + 0x150]
call qword [sym.imp.msvcrt.dll__ultoa]
mov r8, rax
mov edx, 0x1f
lea rcx, [rsp + 0x15a]
call fcn.00405634
jmp 0x403dce
cmp edx, ebx
je 0x403dba
mov rax, qword [rcx]
jmp 0x403dbe
mov eax, dword [r13]
mov r8, rdi
mov edx, eax
mov rcx, r14
call fcn.00403674
mov r12, rax
test byte [r14], 0x10
je 0x403e1c
cmp dword [rsp + 0x54], ebx
je 0x403de7
mov r9, qword [rsp + 0x90]
mov r9, qword [r9]
jmp 0x403df2
mov rax, qword [rsp + 0x98]
mov r9d, dword [rax]
lea rax, [r12 + 2]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xa0]
mov r8, qword [rax]
mov rdx, qword [rdi]
mov ecx, 4
call qword [r14 + 0x20]
mov esi, dword [rsp + 0x58]
jmp 0x403ee4
cmp dword [rsp + 0x54], ebx
je 0x403e2f
mov r9, qword [rsp + 0x90]
mov r9, qword [r9]
jmp 0x403e3a
mov rax, qword [rsp + 0x98]
mov r9d, dword [rax]
lea rax, [r12 + 2]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xa0]
mov r8, qword [rax]
mov rdx, qword [rdi]
mov ecx, 4
call qword [r14 + 0x20]
mov esi, dword [rsp + 0x58]
jmp 0x403ee4
mov esi, dword [rsp + 0x58]
jmp 0x403ee4
cmp edx, ebx
je 0x403e9a
mov rax, qword [rsp + 0x78]
add rax, 8
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x90]
add r9, 8
mov qword [rsp + 0x90], r9
mov r10, qword [rsp + 0x98]
jmp 0x403ec7
add r13, 4
mov qword [rsp + 0x88], r13
mov r10, qword [rsp + 0x98]
add r10, 4
mov qword [rsp + 0x98], r10
mov rax, qword [rsp + 0x78]
mov r9, qword [rsp + 0x90]
add r12d, ecx
mov dword [rsp + 0x50], r12d
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb8]
jmp 0x403bb3
mov r8, rdi
mov rax, qword [rsp + 0x70]
mov edx, dword [rax + 0x10]
mov rcx, r14
call fcn.00403674
mov r13, rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x78], rax
neg rax
sbb r15d, r15d
and r15d, dword [rsp + 0x80]
mov dword [rsp + 0x50], r15d
cmp r15d, ebx
je 0x40403e
cmp byte [r14 + 4], bl
jne 0x404037
mov eax, dword [rsp + 0x84]
or ecx, 0xffffffff
cmp eax, ecx
je 0x403f5c
mov r12d, 1
mov rdx, qword [rsp + 0x68]
mov dword [rdx], r12d
mov rax, qword [rsp + 0xe8]
mov dword [rax], ecx
mov eax, dword [rsp + 0x84]
jmp 0x403f67
mov r12d, 1
mov rdx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x70]
cmp dword [r15 + 8], eax
je 0x403f79
mov dword [r15 + 8], eax
mov dword [rdx], r12d
cmp dword [rsp + 0x54], ebx
je 0x403fba
mov eax, esi
shl eax, 3
mov esi, eax
mov r8d, eax
mov rdx, qword [rsp + 0xa8]
mov rcx, r13
call sub.msvcrt.dll_memcmp
cmp eax, ebx
je 0x403ff5
mov r8, rsi
mov rdx, qword [rsp + 0xa8]
mov rcx, r13
call fcn.004051e6
mov rcx, qword [rsp + 0x68]
mov dword [rcx], r12d
jmp 0x404001
mov eax, esi
shl eax, 2
mov esi, eax
mov r8d, eax
mov rdx, qword [rsp + 0xb8]
mov rcx, r13
call sub.msvcrt.dll_memcmp
cmp eax, ebx
je 0x403ffc
mov r8, rsi
mov rdx, qword [rsp + 0xb8]
mov rcx, r13
call fcn.004051e6
mov rcx, qword [rsp + 0x68]
mov dword [rcx], r12d
jmp 0x404001
mov rcx, qword [rsp + 0x68]
jmp 0x404001
mov rcx, qword [rsp + 0x68]
mov r10, qword [rsp + 0x60]
cmp r10, rbx
jne 0x404025
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 4]
cmp dword [r15 + 4], eax
je 0x404043
mov dword [r15 + 4], eax
mov dword [rcx], r12d
jmp 0x404043
or esi, 0xffffffff
cmp dword [r15 + 4], esi
je 0x404043
mov dword [r15 + 4], esi
mov dword [rcx], r12d
jmp 0x404043
mov r15, qword [rsp + 0x70]
jmp 0x404043
mov r15, qword [rsp + 0x70]
cmp dword [rsp + 0x54], ebx
je 0x404059
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.msvcrt.dll_free]
jmp 0x404075
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.msvcrt.dll_free]
jmp 0x404075
mov r15, qword [rsp + 0x70]
jmp 0x404075
mov r15, qword [rsp + 0x70]
add r15, 0x14
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x108], r15
jmp 0x4038ef
mov r12d, ebx
mov esi, ebx
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp rax, rbx
je 0x4040bc
add esi, 8
mov rax, qword [rcx + 0x18]
cmp rax, rbx
je 0x4040b4
add esi, 8
mov rax, qword [rax]
cmp rax, rbx
jne 0x4040a9
mov rcx, qword [rcx]
cmp rcx, rbx
jne 0x40409d
cmp esi, ebx
jne 0x4040cf
mov qword [0x00407a30], rbx
mov r13, rbx
jmp 0x404262
add esi, 8
lea rax, [0x00407e40]
mov edx, dword [0x00407a30]
sub edx, eax
mov qword [0x00407a30], rbx
mov r15d, edx
or ecx, 0xffffffff
sub ecx, esi
lea rax, [rdx + 3]
and rax, 0xfffffffffffffffc
cmp rcx, rax
jae 0x404105
mov r13, rbx
jmp 0x404262
lea r12d, [rdx + 3]
and r12d, 0xfffffffc
add r12d, esi
mov ecx, r12d
mov edx, 1
call qword [sym.imp.msvcrt.dll_calloc]
mov r13, rax
mov qword [rsp + 0xe0], rax
cmp rax, rbx
je 0x4041b8
mov ecx, esi
add rcx, rax
mov r8, r15
lea r15, [0x00407e40]
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov r11, r13
mov r10, qword [rsp + 0x60]
mov rcx, r10
cmp r10, rbx
je 0x4041fd
mov eax, dword [rcx + 0x10]
mov dword [r11], eax
movzx eax, word [rcx + 8]
sub ax, r15w
add ax, si
mov word [r11 + 4], ax
movzx eax, word [rcx + 0x14]
mov word [r11 + 6], ax
add r11, 8
mov rdx, qword [rcx + 0x18]
cmp rdx, rbx
je 0x4041ab
mov eax, dword [rdx + 8]
mov dword [r11], eax
movzx eax, word [rdx + 0x10]
sub ax, r15w
add ax, si
mov word [r11 + 4], ax
add r11, 8
mov rdx, qword [rdx]
cmp rdx, rbx
jne 0x404189
mov rcx, qword [rcx]
cmp rcx, rbx
jne 0x40415d
mov r15d, r12d
jmp 0x40420a
mov rax, qword [r14 + 0x20]
cmp rax, rbx
je 0x404202
test byte [r14], 0x10
je 0x4041e2
mov r15d, r12d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rax
mov r10, qword [rsp + 0x60]
jmp 0x40420a
mov r15d, r12d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rax
mov r10, qword [rsp + 0x60]
jmp 0x40420a
mov r15d, r12d
jmp 0x40420a
mov r15d, r12d
mov r10, qword [rsp + 0x60]
mov rsi, r10
cmp r10, rbx
je 0x404253
mov r13, qword [rsp + 0x60]
mov r13, qword [r13]
mov rcx, qword [rsi + 0x18]
cmp rcx, rbx
je 0x40423a
mov rax, qword [rcx]
mov qword [rsi + 0x18], rax
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsi + 0x18]
cmp rcx, rbx
jne 0x404224
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rsi, r13
cmp r13, rbx
jne 0x404217
mov r13, qword [rsp + 0xe0]
cmp r13, rbx
je 0x404262
cmp dword [rsp + 0xb0], r12d
jne 0x40427c
mov r15d, r12d
mov r8d, r12d
mov rdx, r13
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_memcmp
cmp eax, ebx
je 0x404289
mov rax, qword [rsp + 0x68]
mov dword [rax], 1
jmp 0x40428e
mov rax, qword [rsp + 0x68]
cmp dword [rax], ebx
je 0x40454e
mov rax, qword [r14 + 0x20]
cmp rax, rbx
je 0x4042cf
test byte [r14], 0x10
je 0x4042bb
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
lea ecx, [r9 + 9]
call rax
jmp 0x4042cf
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
lea ecx, [r9 + 9]
call rax
cmp r13, rbx
je 0x4044fd
cmp dword [rsp + 0x50], ebx
je 0x404314
cmp byte [r14 + 4], bl
jne 0x404314
cmp dword [rsp + 0x54], ebx
je 0x404300
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xe0], ebx
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xe4], ebx
jmp 0x404314
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xd0], ebx
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xd4], ebx
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.00404578
mov esi, eax
mov r11d, dword [rsp + 0x54]
cmp r11d, ebx
je 0x40433c
mov rcx, qword [rdi + 0x18]
mov edx, dword [rcx + 0x54]
mov r9d, edx
jmp 0x404346
mov rcx, qword [rdi + 0x18]
mov edx, dword [rcx + 0x54]
mov r9d, edx
mov rax, qword [rdi + 0x30]
mov r8d, dword [rax + 0xc]
sub r8d, r9d
mov r9d, dword [rsp + 0x80]
add r8d, r9d
mov r10d, dword [rax + 0x14]
sub r10d, edx
add r10d, r9d
cmp r12d, r9d
jbe 0x404460
cmp r12d, r8d
jbe 0x4043b8
mov rax, qword [r14 + 0x20]
cmp rax, rbx
je 0x4043ad
test byte [r14], 0x10
je 0x404399
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
lea ecx, [r9 + 2]
call rax
jmp 0x4043ad
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
lea ecx, [r9 + 2]
call rax
mov eax, ebx
mov dword [rsp + 0x50], ebx
jmp 0x404464
mov eax, dword [rsp + 0x50]
cmp eax, ebx
je 0x404464
cmp byte [r14 + 4], bl
jne 0x404464
cmp r12d, r10d
ja 0x404428
cmp r11d, ebx
je 0x4043ff
mov r8, qword [rdi + 0x18]
mov edx, dword [r8 + 0x3c]
mov eax, edx
sub eax, r9d
add eax, dword [r8 + 0x54]
lea ecx, [rax + r12 - 1]
lea eax, [rdx - 1]
not eax
and ecx, eax
mov dword [r8 + 0x54], ecx
mov eax, dword [rsp + 0x50]
jmp 0x404464
mov r8, qword [rdi + 0x18]
mov edx, dword [r8 + 0x3c]
mov ecx, edx
sub ecx, r9d
add ecx, r12d
mov eax, dword [r8 + 0x54]
lea ecx, [rcx + rax - 1]
lea eax, [rdx - 1]
not eax
and ecx, eax
mov dword [r8 + 0x54], ecx
mov eax, dword [rsp + 0x50]
jmp 0x404464
cmp r11d, ebx
je 0x404438
mov eax, dword [rcx + 0x3c]
add eax, 0xffffffff
mov r8d, eax
jmp 0x404441
mov eax, dword [rcx + 0x3c]
add eax, 0xffffffff
mov r8d, eax
sub r8d, r9d
add r8d, edx
add r8d, r12d
not eax
and r8d, eax
mov rdx, rdi
mov rcx, r14
call fcn.00402774
mov dword [rsp + 0x50], eax
jmp 0x404464
mov eax, dword [rsp + 0x50]
mov r10, qword [r14 + 0x20]
cmp r10, rbx
je 0x4044a4
test byte [r14], 0x10
je 0x40448d
movsxd rdx, eax
mov qword [rsp + 0x20], rdx
mov r9, r13
xor r8d, r8d
mov rdx, qword [rdi]
lea ecx, [r8 + 0xb]
call r10
jmp 0x4044a4
cdqe
mov qword [rsp + 0x20], rax
mov r9, r13
xor r8d, r8d
mov rdx, qword [rdi]
lea ecx, [r8 + 0xb]
call r10
cmp dword [rsp + 0x50], ebx
je 0x4044f4
cmp byte [r14 + 4], bl
jne 0x4044f4
cmp dword [rsp + 0x54], ebx
je 0x4044cd
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xe0], esi
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xe4], r12d
jmp 0x4044e2
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xd0], esi
mov rax, qword [rdi + 0x18]
mov dword [rax + 0xd4], r12d
mov rcx, rsi
add rcx, qword [rdi + 0x10]
mov r8, r15
mov rdx, r13
call sub.msvcrt.dll_memcpy
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
cmp dword [rsp + 0x50], ebx
je 0x40454e
cmp byte [r14 + 4], bl
jne 0x40454e
mov rsi, qword [rdi + 0x30]
mov r12d, ebx
cmp dword [rdi + 0x28], ebx
jbe 0x40454e
lea rdx, [0x00401910]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, ebx
je 0x404539
add r12d, 1
add rsi, 0x28
cmp r12d, dword [rdi + 0x28]
jb 0x404515
jmp 0x40454e
mov eax, dword [rsi + 0x24]
bt eax, 0x1f
jae 0x40454e
and eax, 0x3fffffff
bts eax, 0x1e
mov dword [rsi + 0x24], eax
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.004051c0
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret