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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x12c
push 0
lea eax, [esi + 4]
push eax
call fcn.1002b150
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dl, byte [ebp + 0x10]
or eax, 0x20480000
or dword [esi + 8], 0x40203c0
mov edi, dword [ebp + 8]
mov dword [esi], 1
mov dword [esi + 0xc], eax
test dl, dl
je 0x100460a7
or eax, 0x20000
mov dword [esi + 0xc], eax
cmp dword [edi + 0x11c], 0
je 0x100460a7
or eax, 0x40000000
mov dword [esi + 0xc], eax
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x100460b6
or eax, 0x80000000
mov dword [esi + 0xc], eax
test dl, dl
je 0x100460c1
or dword [esi + 0x10], 0x120
mov eax, dword [esi + 0x1c]
or eax, 0x20000
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], eax
test dl, dl
je 0x100460e6
or eax, 0xe19aef1
mov dword [esi + 0x1c], eax
test dl, dl
mov eax, 0x180008
mov ecx, 1
cmove eax, ecx
or dword [esi + 0x8c], eax
test dl, dl
je 0x10046195
mov dword [esi + 0x9c], 0x3b
test bl, bl
je 0x1004611b
mov dword [esi + 0x9c], 0x17b
mov dword [esi + 0x20], 0x228f2
xor ecx, ecx
mov dword [esi + 0x54], 0x1f
cmp dword [edi + 0x10], 5
jb 0x1004613e
cmp dword [edi + 0x18], 0xb
jb 0x1004613e
mov ecx, 0x3ffffff
jmp 0x1004618f
mov ebx, dword [edi + 0x70]
xor eax, eax
test dword [eax + 0x1005c990], ebx
je 0x10046153
mov edx, dword [eax + 0x1005c994]
jmp 0x10046155
xor edx, edx
or ecx, edx
test dword [eax + 0x1005c998], ebx
je 0x10046167
mov edx, dword [eax + 0x1005c99c]
jmp 0x10046169
xor edx, edx
or ecx, edx
test dword [eax + 0x1005c9a0], ebx
je 0x1004617b
mov edx, dword [eax + 0x1005c9a4]
jmp 0x1004617d
xor edx, edx
add eax, 0x18
or ecx, edx
cmp eax, 0xd8
jb 0x10046143
mov dl, byte [ebp + 0x10]
mov bl, byte [ebp + 0xc]
mov dword [esi + 0x90], ecx
test bl, bl
je 0x100461a0
mov dword [esi + 0x24], 0x1000000
test dl, dl
je 0x10046205
mov eax, dword [esi + 0x24]
or eax, 0x7263b1
mov dword [esi + 0x24], eax
test bl, bl
je 0x100461bb
or eax, 0x7000000
mov dword [esi + 0x24], eax
test bl, bl
mov dword [esi + 0x34], 0xff
mov ecx, 0x1ff
mov dword [esi + 0x28], 0xff
mov eax, 0xff
mov dword [esi + 0x38], 0x84208
cmovne eax, ecx
mov ecx, 0x23ff
mov dword [esi + 0x88], eax
mov eax, 0x3ff
cmovne eax, ecx
mov ecx, 0x3fff
mov dword [esi + 0x30], eax
mov eax, 0x1fff
cmovne eax, ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], 4
test dl, dl
je 0x100462dc
movss xmm0, dword [0x1005ca68]
mov ecx, 0x100
mov dword [esi + 0x3c], 0x1ec4d
mov dword [esi + 0x40], 0x3030700
mov dword [esi + 0x48], 0x3030300
mov dword [esi + 0x44], 0x3030300
mov dword [esi + 0x50], 0x3f
mov dword [esi + 0x4c], 0x3f
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
cmp dword [edi + 0x48], ecx
cmova ecx, dword [edi + 0x48]
mov dword [esi + 0x60], ecx
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], 0x501502f9
mov dword [esi + 0x74], 0xc6000000
mov dword [esi + 0x78], 0xc6000000
mov dword [esi + 0x7c], 0x46000000
mov dword [esi + 0x80], 0x46000000
mov eax, dword [edi + 0x28]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], 0
movss xmm1, dword [edi + 0x38]
comiss xmm0, xmm1
movss dword [esi + 0xb0], xmm1
jbe 0x100462c8
mov dword [esi + 0xb0], 0x42800000
mov eax, dword [edi + 0x58]
mov dword [esi + 0xb4], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0xb8], eax
jmp 0x100462fe
test bl, bl
je 0x100462fe
mov dword [esi + 0xb0], 0x3f800000
mov dword [esi + 0xb4], 0x1fffff
mov dword [esi + 0xb8], 0xfffe
test dl, dl
je 0x10046313
mov dword [esi + 0xc0], 0x100
mov eax, 0x10
jmp 0x10046318
mov eax, 1
mov dword [esi + 0xbc], eax
test bl, bl
je 0x1004638b
test dl, dl
je 0x10046345
mov eax, dword [edi + 0xf4]
cmp eax, 4
jae 0x1004633e
cmp eax, 1
mov ecx, 1
cmovb eax, ecx
jmp 0x1004634a
mov eax, 4
jmp 0x1004634a
mov eax, 1
mov dword [esi + 0xf0], eax
test dl, dl
je 0x1004635b
or dword [esi + 0x20], 0x2c4000
mov dword [esi + 0xd4], 0x11
test dl, dl
je 0x100465c4
or dword [esi + 0xec], 0x30f
mov dword [esi + 0xd4], 0x51
mov dword [esi + 0xf4], 0x3000300
test dl, dl
je 0x100465c4
mov ecx, dword [edi + 8]
mov edx, 8
cmp dword [edi + 0x3c], ecx
mov eax, edx
cmova ecx, dword [edi + 0x3c]
cmp ecx, eax
cmovb eax, ecx
mov ecx, 6
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], eax
cmp dword [edi + 0xc], ecx
cmovb ecx, dword [edi + 0xc]
mov dword [esi + 0xa4], ecx
cmp dword [edi + 4], edx
cmovb edx, dword [edi + 4]
mov dword [esi + 0xa0], edx
mov edx, dword [edi + 0x10]
test edx, edx
jne 0x100463f0
mov dword [esi + 0xc4], 0xfffe0000
mov dword [esi + 0xc8], edx
jmp 0x1004648b
mov dword [esi + 0xc4], 0xfffe0101
mov dword [esi + 0xc8], 0x60
test bl, bl
je 0x1004648b
mov eax, dword [edi + 0x60]
mov dword [esi + 0x120], eax
cmp edx, 1
je 0x1004641f
cmp edx, 5
jl 0x1004648b
mov ecx, 0x20
mov dword [esi + 0xc4], 0xfffe0200
mov dword [esi + 0xc8], 0x100
mov dword [esi + 0xfc], 0x18
cmp dword [edi + 0x68], ecx
cmovb ecx, dword [edi + 0x68]
mov dword [esi + 0x100], ecx
mov dword [esi + 0x104], 4
mov dword [esi + 0xf8], 1
cmp edx, 7
jl 0x1004648b
cmp ecx, 0x20
jb 0x1004648b
mov dword [esi + 0xc4], 0xfffe0300
mov dword [esi + 0x128], 0x1000
mov dword [esi + 0x11c], 0x1000100
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x100464ab
pop edi
mov dword [esi + 0xcc], 0xffff0000
mov al, 1
mov dword [esi + 0xd0], ecx
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, ecx
sub eax, 3
je 0x100464e0
sub eax, 2
je 0x100464d4
sub eax, 2
je 0x100464c8
mov dword [esi + 0xcc], 0xffff0104
jmp 0x100464ea
mov dword [esi + 0xcc], 0xffff0103
jmp 0x100464ea
mov dword [esi + 0xcc], 0xffff0102
jmp 0x100464ea
mov dword [esi + 0xcc], 0xffff0101
mov dword [esi + 0xd0], 0x477fe000
test bl, bl
je 0x100465c4
mov eax, dword [edi + 0x64]
mov dword [esi + 0x124], eax
cmp ecx, 0xb
jge 0x10046513
cmp ecx, 1
jne 0x100465c4
mov dword [esi + 0xcc], 0xffff0200
mov edx, 0x20
mov dword [esi + 0x10c], 0x18
mov eax, 0x1d
cmp dword [edi + 0x6c], 0x20
cmovb edx, dword [edi + 0x6c]
mov dword [esi + 0x110], edx
mov dword [esi + 0x114], 4
mov dword [esi + 0x118], 0x200
mov dword [esi + 0x108], 0x1d
cmp byte [edi + 0x34], 0
je 0x10046572
mov dword [esi + 0x108], 0x1f
mov eax, 0x1f
cmp ecx, 0xd
jl 0x100465c4
cmp dword [esi + 0x58], 0x1000
jb 0x100465c4
cmp dword [esi + 0x5c], 0x1000
jb 0x100465c4
cmp dword [esi + 0x6c], 0x10
jb 0x100465c4
cmp dword [esi + 0xa4], 6
jb 0x100465c4
cmp edx, 0x20
jb 0x100465c4
test al, 2
je 0x100465c4
mov ecx, 0x2000
mov dword [esi + 0xcc], 0xffff0300
cmp dword [esi + 0x64], ecx
mov dword [esi + 0x12c], 0x1000
cmova ecx, dword [esi + 0x64]
mov dword [esi + 0x64], ecx
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10