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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x170
mov edi, edx
mov ebx, ecx
lea esi, [esp + 0xa0]
mov edx, ebx
mov ecx, esi
push dword [ebp + 8]
push edi
call fcn.00401bd2
add esp, 8
mov eax, dword [esi + 8]
xor eax, 2
or eax, dword [esi + 0xc]
je 0x4022a9
lea esi, [esp + 0xa8]
lea edx, [esp + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], 0xf4422d85
mov dword [esp + 0x18], 0xa423c218
mov eax, dword [esi - 8]
mov ecx, dword [esi - 4]
mov edi, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], 0xb3f9e9b0
mov dword [esp + 0x20], 0x15b11d7e
lea esi, [esp + 0x80]
mov ecx, esi
push 0xf4422d85
push 0xa423c218
push 0xb3f9e9b0
push 0x15b11d7e
call fcn.0043d594
add esp, 0x10
movdqu xmm0, xmmword [esi]
pcmpeqb xmm0, xmmword [0x4bb060]
pmovmskb eax, xmm0
cmp eax, 0xffff
jne 0x402400
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
movsd qword [esp + 0x90], xmm0
movq xmm0, qword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, ecx
movq qword [esp + 0x98], xmm0
xor eax, 2
or eax, esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
je 0x4022a9
mov dword [esp + 0x10], edx
mov edx, ecx
xor edx, 3
or edx, esi
jne 0x4022b5
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x24]
mov esi, dword [ebp + 8]
xor edx, 2
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], esi
or edx, dword [esp + 4]
jne 0x4024b8
mov ebx, dword [esp + 0xc]
jmp 0x4022ab
mov bl, 2
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esp + 0x128]
movq xmm0, qword [esp + 0x90]
movsd xmm1, qword [esp + 0x98]
mov dword [edx], ecx
mov ecx, dword [esp + 8]
mov dword [edx + 4], esi
mov dword [edx + 8], ecx
mov ecx, dword [esp + 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [edx + 0x18], edi
mov edi, dword [esp + 0x14]
mov dword [edx + 0x14], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x24], edi
mov edi, dword [esp + 0x1c]
mov dword [edx + 0x20], eax
mov dword [edx + 0x28], ebx
mov dword [edx + 0x2c], edi
movq qword [edx + 0x30], xmm0
movsd qword [edx + 0x38], xmm1
lea esi, [esp + 0xa0]
mov ecx, esi
call fcn.00443fd3
lea ecx, [esp + 0x30]
mov edx, esi
call fcn.0040160e
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4023dc
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xe8], esi
mov edi, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xec], ebx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
dec eax
and eax, 0xfffffff8
lea eax, [eax + esi + 8]
lea edx, [esp + 0x70]
push eax
push edx
call ecx
add esp, 8
mov eax, 0x15b11d7e
mov ecx, 0xa423c218
mov edx, 0xb3f9e9b0
xor eax, dword [esp + 0x70]
xor ecx, dword [esp + 0x78]
xor edx, dword [esp + 0x74]
or ecx, eax
mov eax, 0xf4422d85
xor eax, dword [esp + 0x7c]
or eax, edx
or eax, ecx
jne 0x4025a3
xor eax, eax
xor ecx, ecx
inc eax
lock cmpxchg dword [esi], ecx
jne 0x4023e0
mov bl, byte [esi + 8]
cmp esi, 0xffffffff
je 0x4023ef
lock dec dword [esi + 4]
jne 0x4023ef
push esi
push 0
push dword [0x4e4100]
call sub.kernel32.dll_HeapFree
jmp 0x4023ef
mov bl, 2
jmp 0x4023ef
mov bl, byte [esi + 8]
lock dec dword [esi]
jne 0x4023ef
mov ecx, esi
call fcn.00405231
lea ecx, [esp + 0xa0]
call fcn.00403b57
jmp 0x4022ab
mov eax, dword [esp + 0x8c]
lea esi, [esp + 0x30]
mov ecx, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xe8]
mov edx, ebx
mov ecx, esi
push eax
push dword [esp + 8]
push dword [esp + 0x10]
call fcn.0043570b
add esp, 0xc
mov eax, dword [esi]
xor eax, 2
or eax, dword [esi + 4]
je 0x402472
lea ecx, [esp + 0xe8]
call fcn.00404985
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
shrd edx, edi, 8
shrd edi, esi, 8
shrd esi, ecx, 8
mov dword [esp + 0x128], eax
shr ecx, 8
mov dword [esp + 0x12c], ebx
jmp 0x4024d7
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, edi
mov dword [esp + 0x20], eax
shrd edx, ebx, 8
shrd ebx, edi, 8
shrd esi, ecx, 8
shr ecx, 8
mov edi, ebx
mov eax, dword [esp + 8]
movzx ebx, byte [esp + 0xc]
shld ecx, esi, 8
shld esi, edi, 8
shld edi, edx, 8
shl edx, 8
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 4]
or ebx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x18]
mov esi, 2
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc0], edx
lea edx, [esp + 0x128]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x49c571
lea edx, [esp + 0x30]
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x3c], 0x43d506
mov dword [ecx], 0x4bfbdc
mov dword [ecx + 4], esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
mov edx, 0x4bfc54
call fcn.004468e0
ud2
mov ecx, dword [esp + 8]
lea eax, [esp + 0xe8]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x14], ecx
mov edx, 0x63
mov ecx, str.Fatal_internal_error._Please_consider_filing_a_bug_report_at_https:__github.com_clap_rs_clap_issues_home_kevin_.cargo_registry_src_index.crates.io_6f17d22bba15001f_clap_builder_4.5.2_src_builder_arg.rs
push 0x4c6160
push 0x4bb71c
push eax
call fcn.004491d0
add esp, 0xc
ud2