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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test edx, edx
mov dword [esp + 0x54], ecx
je 0x403f75
cmp edx, 1
jne 0x404120
mov eax, dword [esi]
xor edx, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
and dword [eax], 0
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x44]
mov dword [esp + 0x20], 0
test al, 1
jne 0x4041be
mov ebx, eax
shr ebx, 1
and ebx, 0x1f
cmp ebx, 0x1f
jne 0x403ecd
lea ecx, [esp + 0x30]
mov esi, edx
call fcn.004028e3
mov edx, esi
jmp 0x403f5c
cmp ebx, 0x1e
mov dword [esp + 8], edx
jne 0x403f0a
test edx, edx
jne 0x403f0a
mov ecx, 0x1f4
mov dword [esp + 0xc], eax
push 4
pop edx
call fcn.00407dd1
push 0x1f4
push 0
mov dword [esp + 0x10], eax
push eax
call fcn.004bae60
add esp, 0xc
xor ecx, ecx
call fcn.00438193
mov eax, dword [esp + 0xc]
test esi, esi
jne 0x403f41
mov dword [esp + 0xc], eax
mov ecx, 0x1f4
push 4
pop edx
call fcn.00407dd1
mov esi, eax
push 0x1f4
push 0
push eax
call fcn.004bae60
add esp, 0xc
xor eax, eax
lock cmpxchg dword [edi + 0x44], esi
jne 0x403f67
mov dword [edi + 4], esi
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
lock cmpxchg dword [edi + 0x40], ecx
je 0x40428d
lea ecx, [esp + 0x30]
call fcn.0040290e
mov edx, dword [esp + 8]
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x44]
jmp 0x403ea7
mov ecx, dword [esp + 8]
call fcn.00438193
jmp 0x403ec6
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x80]
mov dword [esp + 0xc], eax
and dword [ecx + 0x10], 0
mov dword [edx + 8], 0x3b9aca00
movaps xmmword [ecx], xmm0
and dword [esp + 0x10], 0
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x88]
test eax, edx
jne 0x4041f4
xor ebx, ebx
mov esi, edi
dec eax
sub ebx, dword [edi + 0x84]
mov edi, dword [edi + 0xd4]
and eax, edx
mov ecx, eax
shl ecx, 4
mov dword [esp + 8], edi
mov edi, dword [edi + ecx]
cmp edx, edi
jne 0x403fee
inc eax
mov edi, esi
cmp eax, dword [esi + 0x80]
jae 0x40400e
lea ebx, [edx + 1]
jmp 0x404016
add edi, dword [esi + 0x84]
lea eax, [edx + 1]
cmp edi, eax
jne 0x404031
mfence
mov edi, esi
mov eax, dword [esi]
add eax, dword [esi + 0x84]
cmp eax, edx
jne 0x404023
jmp 0x404041
and ebx, edx
add ebx, dword [edi + 0x84]
mov eax, edx
lock cmpxchg dword [edi + 0x40], ebx
je 0x404252
lea ecx, [esp + 0x10]
call fcn.0040290e
jmp 0x403faa
lea ecx, [esp + 0x10]
call fcn.004028e3
mov edi, esi
jmp 0x403faa
mov eax, dword [esp + 0x88]
cmp eax, 0x3b9aca00
je 0x40409c
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov dword [esp + 8], eax
call fcn.00495000
mov dword [esp + 0x78], ecx
mov ecx, edi
cmp eax, ebx
mov edi, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
sbb edi, esi
mov edi, ecx
mov ecx, dword [esp + 8]
jb 0x40409c
xor eax, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
or edx, eax
jne 0x404463
cmp dword [esp + 0x78], ecx
jae 0x404463
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
call fcn.004987f0
test eax, eax
je 0x4040fc
mov ebx, dword [eax]
and dword [eax], 0
mov esi, eax
test ebx, ebx
je 0x4040fc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x58]
mov dword [esp + 0x58], ebx
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.004030d4
mov eax, dword [esi]
lea ecx, [esp + 0x68]
mov dword [esi], ebx
mov dword [esp + 0x68], eax
call fcn.00406a36
jmp 0x403fa5
call fcn.004cb5c0
lea esi, [esp + 0x68]
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], eax
mov edx, esi
call fcn.004030d4
mov ecx, esi
call fcn.00435ec1
jmp 0x403fa5
and dword [esp + 0x90], 0
add edi, 8
lea ebx, [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x70], 0x3b9aca00
mov ecx, ebx
mov edx, edi
movaps xmmword [esp + 0x80], xmm0
call fcn.00435ed0
mov ecx, ebx
mov edx, 0x4df7e0
call fcn.00407830
lea ebx, [esp + 0x10]
mov byte [esp + 0xc], dl
lea edx, [eax + 0x20]
mov dword [esp + 8], eax
mov ecx, ebx
call fcn.00402969
cmp dword [ebx], 0
je 0x404216
mov edi, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], edi
mov dword [esp + 0x90], edi
call fcn.004056a9
test edi, edi
je 0x4042e7
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esi]
movsd qword [edi], xmm0
mov byte [edi + 0xc], 1
jmp 0x4042f1
xor esi, esi
mov ecx, edx
call fcn.00438193
test esi, esi
jne 0x4042b7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404321
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x40430a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4042fa
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x40424a
mov bl, byte [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00406a36
mov ecx, dword [esp + 8]
cmp byte [ecx + 0x38], 0
je 0x40433d
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
movzx edx, bl
mov dword [esp + 0x1c], eax
movsd qword [esp + 0x14], xmm0
call fcn.004056a9
xor eax, eax
inc eax
jmp 0x4042fd
mov ebx, ecx
mov ecx, edi
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
inc edx
add ecx, 0xb0
lea eax, [edi + ebx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [edi + ebx + 4], esi
mov esi, dword [esp + 0x20]
mov dword [edi + ebx + 0xc], esi
mov esi, dword [esp + 0x24]
mov dword [edi + ebx + 8], esi
mov dword [eax], edx
call fcn.00402b8d
jmp 0x4042fa
cmp ebx, 0x1e
jne 0x404330
mov eax, dword [esp + 8]
test eax, eax
je 0x4044ae
mov dword [edi + 0x44], eax
lock add dword [edi + 0x40], 2
mov dword [esi + 0x1f0], eax
push 0x1e
pop eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub edi, 0xffffff80
shl ecx, 4
mov dword [esi + ecx], eax
mov dword [esi + ecx + 8], ebx
mov dword [esi + ecx + 4], edx
lock or dword [esi + ecx + 0xc], 1
mov ecx, edi
call fcn.00402b8d
jmp 0x404321
mov ecx, dword [esi]
test ecx, ecx
jne 0x404497
lea ecx, [esp + 0x30]
call fcn.00435ec1
push 2
pop eax
cmp eax, 2
je 0x404321
test eax, eax
je 0x404482
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
movsd xmm0, qword [esp + 0x14]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x404328
mov eax, dword [esp + 0x54]
and dword [eax], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 8]
mov dword [esp + 0x20], ebx
jmp 0x4041c0
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x80]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
mov byte [esp + 0x4c], bl
call fcn.004987f0
test eax, eax
je 0x40441a
mov edi, dword [eax]
and dword [eax], 0
mov esi, eax
test edi, edi
je 0x40443d
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
mov dword [eax], edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
push eax
call fcn.004033dc
pop eax
mov eax, dword [esi]
lea ecx, [esp + 0x58]
mov dword [esi], edi
mov dword [ecx], eax
call fcn.00406a36
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, 3
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x60], ecx
je 0x40441a
mov ecx, dword [esp + 0x60]
movsd xmm0, qword [esp + 0x58]
mov dword [esp + 0x1c], ecx
movsd qword [esp + 0x14], xmm0
mov dword [esp + 0x10], eax
cmp byte [esp + 0x4c], 2
je 0x404411
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.004448bb
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.004056a9
mov eax, dword [esp + 0x10]
jmp 0x4042fd
call fcn.004cb5c0
lea esi, [esp + 0x7c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
mov dword [esi], eax
push esi
call fcn.004033dc
pop eax
mov ecx, esi
call fcn.00435ec1
jmp 0x4043f0
call fcn.004cb5c0
lea esi, [esp + 0x58]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
mov dword [esi], eax
push esi
call fcn.004033dc
pop eax
mov ecx, esi
call fcn.00435ec1
jmp 0x4043bb
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
jmp 0x4042fd
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codeC:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_srcmirrors.ustc.edu.cn_12df342d903acd47webpki_0.22.0_srccalendar.rs
push 0x4df658
call fcn.004c88c0
pop eax
ud2
mov edx, dword [esi + 4]
call fcn.00405e61
push 0x2b
pop edx
mov ecx, 0x4f022c
push 0x4df7f0
jmp 0x40448f
push 0x2b
pop edx
mov ecx, 0x4f022c
push 0x4df6bc
jmp 0x40448f