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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x100a9570]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov cl, byte [ebx]
mov esi, ebp
shl esi, 4
add esi, 0x10098478
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], esi
push edi
mov edi, dword [esp + 0x90]
test cl, cl
je 0x10046583
lea eax, [ebx + 1]
cmp cl, 0x25
jne 0x10046576
cmp byte [eax], cl
jne 0x10046583
cmp cl, cl
cmovne eax, ebx
mov cl, byte [eax + 1]
lea ebx, [eax + 1]
test cl, cl
jne 0x10046568
cmp byte [ebx], 0x25
jne 0x100465bf
push ebx
call fcn.10041260
mov ecx, eax
add esp, 4
cmp byte [ecx], 0
je 0x100465c2
sub ecx, ebx
mov eax, 0x20
inc ecx
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.100162d0
add esp, 0xc
lea ebx, [esp + 0x58]
cmp byte [esp + 0x58], 0
jne 0x100465c2
mov ebx, dword [esi + 8]
push ebx
push edi
push ebp
lea eax, [esp + 0x44]
push 0x20
push eax
call fcn.10041070
lea eax, [esp + 0x4c]
push eax
call fcn.10016250
add esp, 0x18
cmp ebp, 8
je 0x10046615
cmp ebp, 9
je 0x10046615
cmp byte [ebx], 0
je 0x1004660e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100465f2
sub ecx, edx
mov al, byte [ecx + ebx - 1]
cmp al, 0x78
je 0x10046607
cmp al, 0x58
jne 0x1004660e
mov ebp, 2
jmp 0x1004661a
mov ebp, 1
jmp 0x1004661a
mov ebp, 0x20000
mov eax, dword [0x100ac57c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x59c0]
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x84]
je 0x10046644
call fcn.10012860
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x80]
or ebp, 0x18000010
mov eax, dword [eax + 0x3e60]
push 0
push 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax + 0xf0], ecx
mov dword [eax + 0xf4], edx
lea eax, [esp + 0x30]
movss xmm0, dword [esi + 8]
subss xmm0, dword [esi]
push ebp
push eax
push 0x20
lea eax, [esp + 0x4c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esi + 0xc]
subss xmm0, dword [esi + 4]
push eax
push 0
push dword [esp + 0x38]
movss dword [esp + 0x4c], xmm0
call fcn.100414e0
mov ecx, dword [esp + 0xa4]
add esp, 0x20
cmp dword [esp + 0x20], ecx
je 0x100466c3
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x3eac]
mov dword [edx + 0x59c0], ecx
test al, al
je 0x10046991
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x30]
mov ebp, dword [ebp]
push ebp
push edi
push eax
call fcn.1004e3c0
push ebx
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x50]
push eax
call fcn.10040cc0
mov ebx, dword [esp + 0xb4]
add esp, 0x1c
mov esi, dword [esp + 0x9c]
test ebx, ebx
jne 0x1004670d
test esi, esi
je case.default.0x10046736
jmp 0x10046729
test esi, esi
je 0x10046729
push esi
push ebx
push dword [esp + 0x1c]
call fcn.10040ef0
add esp, 0xc
test eax, eax
jle 0x10046729
mov eax, ebx
mov ebx, esi
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, 9
ja case.default.0x10046736
jmp dword [eax*4 + 0x100469a8]
test ebx, ebx
je 0x1004674e
mov al, byte [ebx]
cmp byte [edi], al
jge 0x1004674e
mov byte [edi], al
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
mov al, byte [esi]
cmp byte [edi], al
jle case.default.0x10046736
mov byte [edi], al
jmp case.default.0x10046736
test ebx, ebx
je 0x10046778
mov al, byte [ebx]
cmp byte [edi], al
jae 0x10046778
mov byte [edi], al
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
mov al, byte [esi]
cmp byte [edi], al
jbe case.default.0x10046736
mov byte [edi], al
jmp case.default.0x10046736
test ebx, ebx
je 0x100467a5
movzx eax, word [ebx]
cmp word [edi], ax
jge 0x100467a5
mov word [edi], ax
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
movzx eax, word [esi]
cmp word [edi], ax
jle case.default.0x10046736
mov word [edi], ax
jmp case.default.0x10046736
test ebx, ebx
je 0x100467d5
movzx eax, word [ebx]
cmp word [edi], ax
jae 0x100467d5
mov word [edi], ax
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
movzx eax, word [esi]
cmp word [edi], ax
jbe case.default.0x10046736
mov word [edi], ax
jmp case.default.0x10046736
test ebx, ebx
je 0x10046802
mov eax, dword [ebx]
cmp dword [edi], eax
jge 0x10046802
mov dword [edi], eax
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
mov eax, dword [esi]
cmp dword [edi], eax
jle case.default.0x10046736
mov dword [edi], eax
jmp case.default.0x10046736
test ebx, ebx
je 0x1004682c
mov eax, dword [ebx]
cmp dword [edi], eax
jae 0x1004682c
mov dword [edi], eax
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
mov eax, dword [esi]
cmp dword [edi], eax
jbe case.default.0x10046736
mov dword [edi], eax
jmp case.default.0x10046736
test ebx, ebx
je 0x10046863
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp dword [edi + 4], ecx
jg 0x10046863
jl 0x10046883
cmp dword [edi], eax
jae 0x10046863
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp dword [edi + 4], ecx
jl case.default.0x10046736
jg 0x10046883
cmp dword [edi], eax
jbe case.default.0x10046736
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp case.default.0x10046736
test ebx, ebx
je 0x100468a8
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp dword [edi + 4], ecx
ja 0x100468a8
jb 0x10046883
cmp dword [edi], eax
jae 0x100468a8
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp dword [edi + 4], ecx
jb case.default.0x10046736
ja 0x10046883
cmp dword [edi], eax
jbe case.default.0x10046736
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp case.default.0x10046736
test ebx, ebx
je 0x100468d6
movss xmm0, dword [ebx]
comiss xmm0, dword [edi]
jbe 0x100468d6
movss dword [edi], xmm0
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
movss xmm1, dword [esi]
movss xmm0, dword [edi]
comiss xmm0, xmm1
jbe case.default.0x10046736
movss dword [edi], xmm1
jmp case.default.0x10046736
test ebx, ebx
je 0x10046901
movsd xmm0, qword [ebx]
comisd xmm0, xmmword [edi]
jbe 0x10046901
movsd qword [edi], xmm0
jmp case.default.0x10046736
test esi, esi
je case.default.0x10046736
movsd xmm1, qword [esi]
movsd xmm0, qword [edi]
comisd xmm0, xmm1
jbe case.default.0x10046736
movsd qword [edi], xmm1
lea ecx, [esp + 0x30]
sub ebp, 4
jb 0x10046931
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x10046936
add ecx, 4
add edi, 4
sub ebp, 4
jae 0x10046920
cmp ebp, 0xfffffffc
je 0x10046967
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x10046963
cmp ebp, 0xfffffffd
je 0x10046967
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x10046963
cmp ebp, 0xfffffffe
je 0x10046967
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x10046963
cmp ebp, 0xffffffff
je 0x10046967
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x10046967
mov bl, 1
jmp 0x10046969
xor bl, bl
test bl, bl
je 0x1004697c
push dword [esp + 0x84]
call fcn.10018430
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1004d4b3
add esp, 0x6c
ret
mov ecx, dword [esp + 0x78]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004d4b3
add esp, 0x6c
ret