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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x638
mov al, byte [edx + 0xa]
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], ecx
mov byte [esp + 3], al
push esi
push edi
test al, al
jne 0x10040a46
mov byte [esp + 0xb], 2
movsx eax, byte [edx + 8]
mov esi, 3
mov ecx, dword [edx + 4]
add eax, 0xffffffbf
mov byte [esp + 9], 0
mov dword [esp + 0x18], esi
mov byte [esp + 0xa], 0x65
cmp eax, 0x26
ja case.0x10040a6f.66
movzx eax, byte [eax + 0x1004102c]
jmp dword [eax*4 + 0x10041008]
mov byte [esp + 9], 1
mov esi, 4
mov byte [esp + 0xa], 0x70
jmp 0x10040aaf
mov byte [esp + 9], 1
mov esi, 1
jmp case.0x10040a6f.103
mov byte [esp + 9], 1
mov esi, 2
jmp case.0x10040a6f.103
mov byte [esp + 9], 1
cmp ecx, 0xffffffff
mov eax, 6
cmove ecx, eax
mov dword [esp + 0x18], esi
movsd xmm2, qword [ebp + 0x10]
mov eax, 0x432
cmp ecx, eax
mov edi, ecx
cmovg edi, eax
xor edx, edx
cmp ecx, 0x432
mov dword [esp + 0x70], edi
lea eax, [ecx - 0x432]
cmovle eax, edx
sub esp, 8
mov dword [esp + 0x40], eax
movsd qword [esp], xmm2
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__dsign]
movsd xmm0, qword [ebp + 0x10]
add esp, 8
test eax, eax
setne byte [esp + 0xd]
ucomisd xmm0, xmm0
setp cl
cmp cl, 1
jne 0x10040b42
test eax, eax
lea edx, [esp + 0xd0]
mov ax, word [0x101a92ec]
lea ecx, [esp + 0xd1]
cmove ecx, edx
mov dword [esp + 0x28], ecx
mov word [ecx], ax
mov eax, dword [esp + 0x28]
mov cl, byte [0x101a92ee]
mov byte [eax + 2], cl
mov edi, dword [esp + 0x28]
add edi, 3
mov eax, edi
mov ecx, edi
mov edx, edi
jmp 0x10040b8c
lea edx, [esp + 0x639]
lea ecx, [esp + 0xd0]
cmp edi, 0xffffffff
jne 0x10040b70
sub esp, 0xc
movsd qword [esp + 4], xmm0
push esi
call fcn.1003bf30
mov edi, eax
mov dword [esp + 0x3c], edx
mov ecx, edi
mov edx, edi
jmp 0x10040b89
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.1003c1f0
mov dword [esp + 0x3c], edx
mov edi, eax
mov ecx, eax
mov edx, eax
add esp, 0x10
lea esi, [esp + 0xd0]
mov dword [esp + 0x28], edi
sub eax, esi
mov dword [esp + 0x40], esi
cmp byte [esp + 0xd], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x10040bc3
lea esi, [esp + 0xd1]
mov dword [esp + 0x40], esi
mov ecx, esi
mov dword [esp + 0x34], esi
jmp 0x10040bde
cmp byte [esp + 0xb], 2
mov edx, ecx
lea ecx, [esp + 0xd0]
je 0x10040bde
inc eax
mov edx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp byte [esp + 9], 0
je 0x10040c1c
cmp ecx, edx
je 0x10040c17
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x61
jl 0x10040bfe
cmp al, 0x7a
jg 0x10040bfe
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp ecx, edx
jne 0x10040bf0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], eax
add byte [esp + 0xa], 0xe0
fld qword [ebp + 0x10]
sub esp, 8
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__dclass
add esp, 8
mov byte [esp + 0xc], 0
test ax, ax
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
mov dword [esp + 0x3c], edi
setle al
movaps xmmword [esp + 0x50], xmm0
xor edx, edx
mov byte [esp + 0xe], al
mov dword [esp + 0x24], edx
mov ecx, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], dl
test al, al
je 0x10040eb6
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 0xb]
mov byte [esp + 9], cl
test cl, cl
mov ecx, edi
jne 0x10040c8e
cmp byte [eax + 0xc], dl
je 0x10040e00
mov eax, esi
cmp eax, edi
jae 0x10040cba
mov dh, byte [esp + 0xa]
mov dl, byte [eax]
cmp dl, 0x2e
jne 0x10040ca5
mov dword [esp + 0x1c], eax
jmp 0x10040caf
cmp dl, dh
jne 0x10040caf
mov ecx, eax
mov dword [esp + 0x20], ecx
inc eax
cmp eax, edi
jb 0x10040c98
mov esi, dword [esp + 0x40]
xor edx, edx
mov eax, dword [esp + 0x1c]
cmp ecx, eax
cmovb eax, ecx
cmp byte [esp + 9], 0
mov dword [esp + 0x3c], eax
je 0x10040ce6
cmp dword [esp + 0x1c], edi
jne 0x10040ce6
mov eax, dword [esp + 0x10]
inc eax
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 0xc], 0
je 0x10040e00
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10040d0b
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x44], esi
mov eax, dword [esi]
call dword [eax + 4]
jmp 0x10040d1c
push 1
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x40]
call fcn.1003c540
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x10040d6e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040d64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040d64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010fd52
add esp, 8
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x50], xmm0
movq xmm0, qword [esp + 0xc0]
movq qword [esp + 0x60], xmm0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0xf
mov byte [esp + 0xb0], 0
test esi, esi
je 0x10040dc3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10040dc3
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esp + 0x64], 0xf
lea eax, [esp + 0x50]
push dword [esp + 0x60]
cmova eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
sub ecx, esi
push eax
call fcn.1003a490
mov edi, dword [esp + 0x30]
add esp, 8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
dec eax
jmp dword [eax*4 + 0x10041054]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x10040e2e
mov al, byte [esp + 0xa]
dec ecx
mov dword [esp + 0x20], ecx
cmp byte [ecx], al
jne 0x10040e18
mov dword [esp + 0x24], edx
jmp 0x10040eb6
mov dword [esp + 0x24], edx
jmp 0x10040eb6
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
cmp byte [edx + 0xd], 0
je 0x10040edb
cmp byte [edx + 9], 0
jne 0x10040edb
cmp byte [esp + 0xe], 0
je 0x10040edb
mov cl, 1
jmp 0x10040edd
xor cl, cl
lea esi, [esp + 0xb]
mov byte [esp + 0xf], cl
mov dword [esp + 0x74], esi
test cl, cl
lea esi, [esp + 0xd]
mov dword [esp + 0x84], edx
mov dword [esp + 0x78], esi
lea ecx, [esp + 0x74]
lea esi, [esp + 0xf]
mov dword [esp + 0x7c], esi
lea esi, [esp + 0x14]
mov dword [esp + 0x80], esi
lea esi, [ebp + 0xc]
mov dword [esp + 0x88], esi
lea esi, [esp + 0x34]
mov dword [esp + 0x8c], esi
lea esi, [esp + 0x3c]
mov dword [esp + 0x90], esi
lea esi, [esp + 0x50]
mov dword [esp + 0x94], esi
lea esi, [esp + 0x48]
mov dword [esp + 0x98], esi
lea esi, [esp + 0x1c]
mov dword [esp + 0x9c], esi
lea esi, [esp + 0x28]
mov dword [esp + 0xa0], esi
lea esi, [esp + 0xc]
mov dword [esp + 0xa4], esi
lea esi, [esp + 0x20]
mov dword [esp + 0xa8], esi
lea esi, [esp + 0x24]
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x4c]
je 0x10040fc7
push dword [ebp + 8]
push esi
call fcn.10040790
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x10040fbf
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040fb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041001
push ecx
push edx
call fcn.1010fd52
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
push ecx
push edx
push dword [ebp + 8]
mov edx, eax
mov ecx, esi
call fcn.10043e00
mov ecx, dword [esp + 0x74]
add esp, 0x10
cmp ecx, 0xf
jbe 0x10040fbf
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040fb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040fb5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
jbe 0x10041014
add al, 0x10
xchg dword [edx], ecx
add al, 16
xchg ebx, eax
or al, byte [eax + edx]
lahf
or al, byte [eax + edx]
jnp 0x10041024
add al, 0x10
mov word [edx], cs
add al, 16
cwde
or al, byte [eax + edx]
movsb byte es:[edi], byte [esi]
or al, byte [eax + edx]
mov bl, 0xa
add al, 16
add byte [eax], cl
or byte [eax], cl
add dword [edx], eax
add ecx, dword [eax]
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
add al, 8
or byte [eax], cl
add eax, 210765574
push cs
add al, 0x10
sub cl, byte [esi]
add al, 0x10
aaa
push cs
add al, 0x10
or al, 0xe
add al, 0x10
int3