Function at 0x1004d980
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.100322b0
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 0x1004d9d7
or eax, 0x20000
mov dword [esi + 0xc], eax
cmp dword [edi + 0x11c], 0
je 0x1004d9d7
or eax, 0x40000000
mov dword [esi + 0xc], eax
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x1004d9e6
or eax, 0x80000000
mov dword [esi + 0xc], eax
test dl, dl
je 0x1004d9f1
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 0x1004da16
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 0x1004dac5
mov dword [esi + 0x9c], 0x3b
test bl, bl
je 0x1004da4b
mov dword [esi + 0x9c], 0x17b
mov dword [esi + 0x20], 0x228f2
xor ecx, ecx
mov dword [esi + 0x54], 0x1f
cmp dword [edi + 0x10], 5
jb 0x1004da6e
cmp dword [edi + 0x18], 0xb
jb 0x1004da6e
mov ecx, 0x3ffffff
jmp 0x1004dabf
mov ebx, dword [edi + 0x70]
xor eax, eax
test dword [eax + 0x10066230], ebx
je 0x1004da83
mov edx, dword [eax + 0x10066234]
jmp 0x1004da85
xor edx, edx
or ecx, edx
test dword [eax + 0x10066238], ebx
je 0x1004da97
mov edx, dword [eax + 0x1006623c]
jmp 0x1004da99
xor edx, edx
or ecx, edx
test dword [eax + 0x10066240], ebx
je 0x1004daab
mov edx, dword [eax + 0x10066244]
jmp 0x1004daad
xor edx, edx
add eax, 0x18
or ecx, edx
cmp eax, 0xd8
jb 0x1004da73
mov dl, byte [ebp + 0x10]
mov bl, byte [ebp + 0xc]
mov dword [esi + 0x90], ecx
test bl, bl
je 0x1004dad0
mov dword [esi + 0x24], 0x1000000
test dl, dl
je 0x1004db35
mov eax, dword [esi + 0x24]
or eax, 0x7263b1
mov dword [esi + 0x24], eax
test bl, bl
je 0x1004daeb
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 0x1004dc0c
movss xmm0, dword [0x10066308]
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 0x1004dbf8
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 0x1004dc2e
test bl, bl
je 0x1004dc2e
mov dword [esi + 0xb0], 0x3f800000
mov dword [esi + 0xb4], 0x1fffff
mov dword [esi + 0xb8], 0xfffe
test dl, dl
je 0x1004dc43
mov dword [esi + 0xc0], 0x100
mov eax, 0x10
jmp 0x1004dc48
mov eax, 1
mov dword [esi + 0xbc], eax
test bl, bl
je 0x1004dcbb
test dl, dl
je 0x1004dc75
mov eax, dword [edi + 0xf4]
cmp eax, 4
jae 0x1004dc6e
cmp eax, 1
mov ecx, 1
cmovb eax, ecx
jmp 0x1004dc7a
mov eax, 4
jmp 0x1004dc7a
mov eax, 1
mov dword [esi + 0xf0], eax
test dl, dl
je 0x1004dc8b
or dword [esi + 0x20], 0x2c4000
mov dword [esi + 0xd4], 0x11
test dl, dl
je 0x1004def4
or dword [esi + 0xec], 0x30f
mov dword [esi + 0xd4], 0x51
mov dword [esi + 0xf4], 0x3000300
test dl, dl
je 0x1004def4
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 0x1004dd20
mov dword [esi + 0xc4], 0xfffe0000
mov dword [esi + 0xc8], edx
jmp 0x1004ddbb
mov dword [esi + 0xc4], 0xfffe0101
mov dword [esi + 0xc8], 0x60
test bl, bl
je 0x1004ddbb
mov eax, dword [edi + 0x60]
mov dword [esi + 0x120], eax
cmp edx, 1
je 0x1004dd4f
cmp edx, 5
jl 0x1004ddbb
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 0x1004ddbb
cmp ecx, 0x20
jb 0x1004ddbb
mov dword [esi + 0xc4], 0xfffe0300
mov dword [esi + 0x128], 0x1000
mov dword [esi + 0x11c], 0x1000100
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x1004dddb
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 0x1004de10
sub eax, 2
je 0x1004de04
sub eax, 2
je 0x1004ddf8
mov dword [esi + 0xcc], 0xffff0104
jmp 0x1004de1a
mov dword [esi + 0xcc], 0xffff0103
jmp 0x1004de1a
mov dword [esi + 0xcc], 0xffff0102
jmp 0x1004de1a
mov dword [esi + 0xcc], 0xffff0101
mov dword [esi + 0xd0], 0x477fe000
test bl, bl
je 0x1004def4
mov eax, dword [edi + 0x64]
mov dword [esi + 0x124], eax
cmp ecx, 0xb
jge 0x1004de43
cmp ecx, 1
jne 0x1004def4
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 0x1004dea2
mov dword [esi + 0x108], 0x1f
mov eax, 0x1f
cmp ecx, 0xd
jl 0x1004def4
cmp dword [esi + 0x58], 0x1000
jb 0x1004def4
cmp dword [esi + 0x5c], 0x1000
jb 0x1004def4
cmp dword [esi + 0x6c], 0x10
jb 0x1004def4
cmp dword [esi + 0xa4], 6
jb 0x1004def4
cmp edx, 0x20
jb 0x1004def4
test al, 2
je 0x1004def4
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