Function at 0x10031140
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 0x10031166
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.0x1003118f.66
movzx eax, byte [eax + 0x1003174c]
jmp dword [eax*4 + 0x10031728]
mov byte [esp + 9], 1
mov esi, 4
mov byte [esp + 0xa], 0x70
jmp 0x100311cf
mov byte [esp + 9], 1
mov esi, 1
jmp case.0x1003118f.103
mov byte [esp + 9], 1
mov esi, 2
jmp case.0x1003118f.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__ldsign]
movsd xmm0, qword [ebp + 0x10]
add esp, 8
test eax, eax
setne byte [esp + 0xd]
ucomisd xmm0, xmm0
setp cl
cmp cl, 1
jne 0x10031262
test eax, eax
lea edx, [esp + 0xd0]
mov ax, word [0x101165a4]
lea ecx, [esp + 0xd1]
cmove ecx, edx
mov dword [esp + 0x28], ecx
mov word [ecx], ax
mov eax, dword [esp + 0x28]
mov cl, byte [0x101165a6]
mov byte [eax + 2], cl
mov edi, dword [esp + 0x28]
add edi, 3
mov eax, edi
mov ecx, edi
mov edx, edi
jmp 0x100312ac
lea edx, [esp + 0x639]
lea ecx, [esp + 0xd0]
cmp edi, 0xffffffff
jne 0x10031290
sub esp, 0xc
movsd qword [esp + 4], xmm0
push esi
call fcn.1002bee0
mov edi, eax
mov dword [esp + 0x3c], edx
mov ecx, edi
mov edx, edi
jmp 0x100312a9
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.1002c1a0
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 0x100312e3
lea esi, [esp + 0xd1]
mov dword [esp + 0x40], esi
mov ecx, esi
mov dword [esp + 0x34], esi
jmp 0x100312fe
cmp byte [esp + 0xb], 2
mov edx, ecx
lea ecx, [esp + 0xd0]
je 0x100312fe
inc eax
mov edx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp byte [esp + 9], 0
je 0x1003133c
cmp ecx, edx
je 0x10031337
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x61
jl 0x1003131e
cmp al, 0x7a
jg 0x1003131e
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp ecx, edx
jne 0x10031310
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__ldclass
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 0x100315d6
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 0xb]
mov byte [esp + 9], cl
test cl, cl
mov ecx, edi
jne 0x100313ae
cmp byte [eax + 0xc], dl
je 0x10031520
mov eax, esi
cmp eax, edi
jae 0x100313da
mov dh, byte [esp + 0xa]
mov dl, byte [eax]
cmp dl, 0x2e
jne 0x100313c5
mov dword [esp + 0x1c], eax
jmp 0x100313cf
cmp dl, dh
jne 0x100313cf
mov ecx, eax
mov dword [esp + 0x20], ecx
inc eax
cmp eax, edi
jb 0x100313b8
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 0x10031406
cmp dword [esp + 0x1c], edi
jne 0x10031406
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 0x10031520
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003142b
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x44], esi
mov eax, dword [esi]
call dword [eax + 4]
jmp 0x1003143c
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.1002c4f0
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 0x1003148e
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031484
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031484
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d6ec2
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 0x100314e3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100314e3
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.1002a7e0
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 + 0x10031774]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x1003154e
mov al, byte [esp + 0xa]
dec ecx
mov dword [esp + 0x20], ecx
cmp byte [ecx], al
jne 0x10031538
mov dword [esp + 0x24], edx
jmp 0x100315d6
mov dword [esp + 0x24], edx
jmp 0x100315d6
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
cmp byte [edx + 0xd], 0
je 0x100315fb
cmp byte [edx + 9], 0
jne 0x100315fb
cmp byte [esp + 0xe], 0
je 0x100315fb
mov cl, 1
jmp 0x100315fd
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 0x100316e7
push dword [ebp + 8]
push esi
call fcn.10030860
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x100316df
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100316d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031721
push ecx
push edx
call fcn.100d6ec2
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.10033ec0
mov ecx, dword [esp + 0x74]
add esp, 0x10
cmp ecx, 0xf
jbe 0x100316df
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100316d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100316d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xchg esi, eax
adc dword [ebx], eax
adc byte [edi - 0x4ceffcef], ah
adc dword [ebx], eax
adc byte [edi - 0x64effcef], bh
adc dword [ebx], eax
adc byte [ecx + edx + 0x11b81003], ch
add edx, dword [eax]
les edx, [ecx]
add edx, dword [eax]
rcl dword [ecx], cl
add edx, dword [eax]
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, 747636486
adc eax, 357175299
add edx, dword [eax]
push edi
adc eax, 0x152c1003
add edx, dword [eax]
int3