Function at 0x100408e0
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 0x10040906
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.0x1004092f.66
movzx eax, byte [eax + 0x10040eec]
jmp dword [eax*4 + 0x10040ec8]
mov byte [esp + 9], 1
mov esi, 4
mov byte [esp + 0xa], 0x70
jmp 0x1004096f
mov byte [esp + 9], 1
mov esi, 1
jmp case.0x1004092f.103
mov byte [esp + 9], 1
mov esi, 2
jmp case.0x1004092f.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 0x10040a02
test eax, eax
lea edx, [esp + 0xd0]
mov ax, word [0x101a72f4]
lea ecx, [esp + 0xd1]
cmove ecx, edx
mov dword [esp + 0x28], ecx
mov word [ecx], ax
mov eax, dword [esp + 0x28]
mov cl, byte [0x101a72f6]
mov byte [eax + 2], cl
mov edi, dword [esp + 0x28]
add edi, 3
mov eax, edi
mov ecx, edi
mov edx, edi
jmp 0x10040a4c
lea edx, [esp + 0x639]
lea ecx, [esp + 0xd0]
cmp edi, 0xffffffff
jne 0x10040a30
sub esp, 0xc
movsd qword [esp + 4], xmm0
push esi
call fcn.1003bdf0
mov edi, eax
mov dword [esp + 0x3c], edx
mov ecx, edi
mov edx, edi
jmp 0x10040a49
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.1003c0b0
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 0x10040a83
lea esi, [esp + 0xd1]
mov dword [esp + 0x40], esi
mov ecx, esi
mov dword [esp + 0x34], esi
jmp 0x10040a9e
cmp byte [esp + 0xb], 2
mov edx, ecx
lea ecx, [esp + 0xd0]
je 0x10040a9e
inc eax
mov edx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp byte [esp + 9], 0
je 0x10040adc
cmp ecx, edx
je 0x10040ad7
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x61
jl 0x10040abe
cmp al, 0x7a
jg 0x10040abe
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp ecx, edx
jne 0x10040ab0
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 0x10040d76
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 0xb]
mov byte [esp + 9], cl
test cl, cl
mov ecx, edi
jne 0x10040b4e
cmp byte [eax + 0xc], dl
je 0x10040cc0
mov eax, esi
cmp eax, edi
jae 0x10040b7a
mov dh, byte [esp + 0xa]
mov dl, byte [eax]
cmp dl, 0x2e
jne 0x10040b65
mov dword [esp + 0x1c], eax
jmp 0x10040b6f
cmp dl, dh
jne 0x10040b6f
mov ecx, eax
mov dword [esp + 0x20], ecx
inc eax
cmp eax, edi
jb 0x10040b58
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 0x10040ba6
cmp dword [esp + 0x1c], edi
jne 0x10040ba6
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 0x10040cc0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10040bcb
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x44], esi
mov eax, dword [esi]
call dword [eax + 4]
jmp 0x10040bdc
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.1003c400
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 0x10040c2e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040c24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040c24
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010e562
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 0x10040c83
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10040c83
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.1003a350
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 + 0x10040f14]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x10040cee
mov al, byte [esp + 0xa]
dec ecx
mov dword [esp + 0x20], ecx
cmp byte [ecx], al
jne 0x10040cd8
mov dword [esp + 0x24], edx
jmp 0x10040d76
mov dword [esp + 0x24], edx
jmp 0x10040d76
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
cmp byte [edx + 0xd], 0
je 0x10040d9b
cmp byte [edx + 9], 0
jne 0x10040d9b
cmp byte [esp + 0xe], 0
je 0x10040d9b
mov cl, 1
jmp 0x10040d9d
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 0x10040e87
push dword [ebp + 8]
push esi
call fcn.10040650
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x10040e7f
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040e75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040ec1
push ecx
push edx
call fcn.1010e562
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.10043cc0
mov ecx, dword [esp + 0x74]
add esp, 0x10
cmp ecx, 0xf
jbe 0x10040e7f
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040e75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040e75
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
or dword ss:[eax + edx], eax
inc edi
or dword [eax + edx], eax
push ebx
or dword [eax + edx], eax
pop edi
or dword [eax + edx], eax
cmp ecx, dword [ecx]
add al, 16
dec esp
or dword [eax + edx], eax
pop eax
or dword [eax + edx], eax
or dword fs:[eax + edx], eax
jae 268701427
add al, 0x10
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
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 + ecx], al
or byte [eax], cl
add eax, -862976250
or al, 4
adc dl, ch
or al, 4
adc bh, dh
or al, 4
adc ah, cl
or al, 4
adc ah, cl
int3