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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov r15, rdx
mov rdx, r8
lea rcx, [rsp + 0x20]
call fcn.004039a0
nop
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x4181c8
lea rdx, str.CRC32
lea rcx, [rsp + 0x68]
call fcn.00402380
mov rbx, rax
mov ecx, InitCommonControls
call fcn.00402d48
mov qword [rsp + 0x138], rax
test rax, rax
je 0x4181aa
mov rdx, rbx
mov rcx, rax
call fcn.004023d8
jmp 0x4181ac
xor eax, eax
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.0040c234
nop
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x28]
xor r14d, r14d
mov qword [rsp + 0x30], r14
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x3c], r12d
xor edi, edi
mov qword [rsp + 0x40], rdi
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], ebx
xor esi, esi
mov r13d, 0xffffffff
test eax, eax
je 0x418570
xor ebp, ebp
xor eax, eax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], eax
lea rcx, [rsp + 0x98]
call fcn.00401cd8
nop
lea rcx, [rsp + 0xa8]
call fcn.0040229c
nop
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + rbp]
lea rcx, [rsp + 0x88]
call fcn.0040e668
mov edi, eax
test eax, eax
jne 0x418335
cmp dword [rsp + 0xa0], eax
jne 0x418271
lea rdx, str.CRC32
lea rcx, [rsp + 0x98]
call fcn.00401d88
lea rdx, [0x00487b40]
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4183d1
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x98]
mov rcx, r15
call fcn.0040c2a8
test al, al
je 0x4184d3
xor ecx, ecx
mov edi, r12d
mov r8, qword [rsp + 0xb8]
test r12d, r12d
je 0x4182db
lea edx, [rdi + rcx]
shr edx, 1
cmp r8, qword [r14 + rdx*8]
je 0x4182f3
cmp r8, qword [r14 + rdx*8]
jae 0x4182d4
mov edi, edx
jmp 0x4182d7
lea ecx, [rdx + 1]
cmp ecx, edi
jne 0x4182bf
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.00417ab8
mov edx, edi
mov r12d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
cmp r12d, ebx
je 0x41830e
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.00418000
mov ebx, dword [rsp + 0x48]
lea rcx, [rsp + 0x88]
call fcn.00417f98
inc esi
add rbp, 8
cmp esi, dword [rsp + 0x28]
jb 0x418200
mov rdi, qword [rsp + 0x40]
jmp 0x418570
lea rcx, [rsp + 0x88]
call fcn.00417f98
nop
movsxd rax, ebx
mov r13d, 0xffffffff
mov r12, qword [rsp + 0x40]
test ebx, ebx
je 0x41837c
lea rsi, [r12 + rax*8]
add ebx, r13d
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x418378
mov rcx, rbp
call fcn.00417f98
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x418359
mov rcx, r12
call sub.msvcrt.dll_free
nop
mov rcx, r14
call sub.msvcrt.dll_free
nop
movsxd rbx, dword [rsp + 0x28]
mov rsi, rbx
test ebx, ebx
je 0x418940
shl rsi, 3
add ebx, r13d
sub rsi, 8
mov rax, qword [rsp + 0x20]
mov rbp, qword [rsi + rax]
test rbp, rbp
je 0x4183c8
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x4183a2
jmp 0x418940
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.0040ca4c
movsxd rax, ebx
mov rdi, qword [rsp + 0x40]
test ebx, ebx
je 0x41842b
lea rbp, [rdi + rax*8]
add ebx, r13d
sub rbp, 8
mov rsi, qword [rbp]
test rsi, rsi
je 0x418427
mov rcx, rsi
call fcn.00417f98
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x418407
xor ebx, ebx
mov dword [rsp + 0x48], ebx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
xor esi, esi
cmp dword [rsp + 0x60], ebx
jbe 0x4184b6
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r8, qword [rax + rbp]
xor ecx, ecx
mov edi, r12d
test r12d, r12d
je 0x418472
lea edx, [rdi + rcx]
shr edx, 1
cmp r8, qword [r14 + rdx*8]
je 0x41848a
cmp r8, qword [r14 + rdx*8]
jae 0x41846b
mov edi, edx
jmp 0x41846e
lea ecx, [rdx + 1]
cmp ecx, edi
jne 0x418456
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.00417ab8
mov edx, edi
mov r12d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
cmp r12d, ebx
je 0x4184a5
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.00418000
mov ebx, dword [rsp + 0x48]
inc esi
add rbp, 8
cmp esi, dword [rsp + 0x60]
jb 0x418443
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
nop
lea rcx, [rsp + 0x88]
call fcn.00417f98
jmp 0x418570
lea rcx, [rsp + 0x88]
call fcn.00417f98
nop
movsxd rax, ebx
mov r13d, 0xffffffff
mov rbp, qword [rsp + 0x40]
test ebx, ebx
je 0x41851b
lea rdi, [rbp + rax*8]
add ebx, r13d
sub rdi, 8
mov rsi, qword [rdi]
test rsi, rsi
je 0x418517
mov rcx, rsi
call fcn.00417f98
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x4184f8
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov rcx, r14
call sub.msvcrt.dll_free
nop
movsxd rbx, dword [rsp + 0x28]
mov rdi, rbx
test ebx, ebx
je 0x418566
shl rdi, 3
add ebx, r13d
sub rdi, 8
mov rax, qword [rsp + 0x20]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x418562
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x41853d
mov edi, 0x80004001
jmp 0x418940
xor r15d, r15d
test r12d, r12d
je 0x418951
mov rsi, rdi
mov qword [rsp + 0x80], rdi
mov rbp, r14
sub rbp, rdi
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x138], 0
lea rcx, [rsp + 0x68]
call fcn.00401cd8
nop
lea r9, [rsp + 0x138]
lea r8, [rsp + 0x68]
mov rdx, qword [rsi + rbp]
mov rcx, qword [rsp + 0x128]
call fcn.0040c34c
mov r14d, eax
test eax, eax
jne 0x41872e
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x4187d0
mov rsi, qword [rsi]
mov qword [rsp + 0x50], 0
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x0048d9f8]
call qword [rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x418628
xor r8d, r8d
mov rdx, rcx
mov rcx, rsi
call fcn.0040df5c
mov r14d, eax
test eax, eax
jne 0x4187ee
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x418633
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [rsp + 0x138]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r14d, eax
cmp eax, 0x40
ja 0x4188a1
mov ecx, 0x120
call fcn.00402d48
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x418677
mov qword [rax], 0
lea rcx, [rax + 8]
call fcn.00401cd8
nop
jmp 0x418679
xor esi, esi
mov rcx, qword [rsp + 0x120]
add rcx, 8
mov rdx, rsi
call fcn.0040c234
mov rbp, qword [rsp + 0x138]
test rbp, rbp
je 0x4186a4
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + VariantCopyInd]
mov rcx, qword [rsi]
test rcx, rcx
je 0x4186b2
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov qword [rsi], rbp
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x68]
call fcn.00401dec
mov dword [rsi + 0x18], r14d
add rsi, 0x1c
mov ebp, 4
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
add rsi, 0x40
dec rbp
jne 0x4186d0
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x418704
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
inc r15d
mov rsi, qword [rsp + 0x80]
add rsi, 8
mov qword [rsp + 0x80], rsi
cmp r15d, r12d
mov rbp, qword [rsp + 0x78]
jb 0x418592
jmp 0x418951
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x41874d
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
nop
movsxd rax, ebx
test ebx, ebx
je 0x41877b
lea rsi, [rdi + rax*8]
add ebx, r13d
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x418777
mov rcx, rbp
call fcn.00417f98
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x418758
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
movsxd rbx, dword [rsp + 0x28]
mov rdi, rbx
test ebx, ebx
je 0x4187c8
shl rdi, 3
add ebx, r13d
sub rdi, 8
mov rax, qword [rsp + 0x20]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x4187c4
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x41879f
mov edi, r14d
jmp 0x418940
lea rax, str.Cant_create_hasher
mov qword [rsp + 0x78], rax
lea rdx, [0x004b8238]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll__CxxThrowException
int3
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x4187ff
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
nop
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x41881e
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
nop
movsxd rax, ebx
test ebx, ebx
je 0x41884c
lea rsi, [rdi + rax*8]
add ebx, r13d
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x418848
mov rcx, rbp
call fcn.00417f98
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x418829
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
movsxd rbx, dword [rsp + 0x28]
mov rdi, rbx
test ebx, ebx
je 0x418899
shl rdi, 3
add ebx, r13d
sub rdi, 8
mov rax, qword [rsp + 0x20]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x418895
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x418870
mov edi, r14d
jmp 0x418940
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x4188c0
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
nop
movsxd rax, ebx
test ebx, ebx
je 0x4188ee
lea rsi, [rdi + rax*8]
add ebx, r13d
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x4188ea
mov rcx, rbp
call fcn.00417f98
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x4188cb
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
movsxd rbx, dword [rsp + 0x28]
mov rdi, rbx
test ebx, ebx
je 0x41893b
shl rdi, 3
add ebx, r13d
sub rdi, 8
mov rax, qword [rsp + 0x20]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x418937
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x418912
mov edi, 0x80004001
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x4189d8
movsxd rax, ebx
test ebx, ebx
je 0x41897f
lea rsi, [rdi + rax*8]
add ebx, r13d
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x41897b
mov rcx, rbp
call fcn.00417f98
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x41895c
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
movsxd rbx, dword [rsp + 0x28]
mov rdi, rbx
test ebx, ebx
je 0x4189cc
shl rdi, 3
add ebx, r13d
sub rdi, 8
mov rax, qword [rsp + 0x20]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x4189c8
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x4189a3
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret