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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x520
mov edi, edx
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x518], eax
xor eax, eax
mov dword [edi], eax
lea esi, [esp + 0x488]
mov ecx, esi
push eax
push eax
call fcn.1004fa5a
add esp, 8
lea ebx, [esp + 0x498]
mov eax, dword [esp + 0x4a8]
mov ecx, dword [esp + 0x4ac]
xor ecx, dword [esp + 0x4ec]
xor eax, dword [esp + 0x4e8]
or eax, ecx
sete al
je 0x1004f00f
cmp byte [esp + 0x488], 0x11
je 0x1004f00f
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
jne 0x1004efce
jmp 0x1004effb
test al, al
jne 0x1004f7c2
mov eax, dword [esp + 0x489]
mov dword [esp + 0x3c], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f022
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
cmp dword [esp + 0x3c], eax
je 0x1004f046
test eax, eax
jne 0x1004efce
movsd xmm0, qword [0x1007d3d8]
movapd xmm1, xmmword [esp + 0x40]
andpd xmm1, xmm0
movapd xmmword [esp + 0x40], xmm1
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x1004f0c5
cmp byte [esp + 0x488], 0x12
jne 0x1004f0c5
movsd xmm0, qword [esp + 0x489]
movsd qword [esp + 0x28], xmm0
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f097
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x28]
ja 0x1004efce
jmp 0x1004f7da
push 2
call dword [0x1008bfc8]
add esp, 4
push 0x1007f977
push 0x1008010e
push eax
call fcn.1001444a
add esp, 0xc
jmp 0x1004efce
mov al, byte [esp + 0x488]
cmp al, 4
je 0x1004f232
cmp al, 0xb
jne 0x1004f861
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0x489]
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f10a
sub esp, 0x10
mov dword [esp + 8], edi
lea eax, [esp + 0x398]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.1004fb4a
add esp, 0x10
mov eax, dword [0x1008f4ec]
mov ecx, dword [0x1008e3c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1004fa0d
cmp byte [0x1008f4e8], 0
je 0x1004f1af
lea eax, [esp + 0x78]
push eax
push edi
call fcn.10062caa
add esp, 8
test al, al
je 0x1004f1af
lea eax, [esp + 0x388]
push eax
call fcn.100785d8
add esp, 4
lea ecx, [esp + eax]
add ecx, 0x389
mov byte [ecx - 1], 0x20
mov edx, 0xff
sub edx, eax
lea eax, [esp + 0x78]
push eax
push edi
push 0
push edx
push ecx
call fcn.10062eea
add esp, 0x14
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x388]
call fcn.1004faba
mov edi, dword [esp + 0x10]
mov ecx, edi
lea edx, [esp + 0x78]
call fcn.10041c4a
mov dword [esp + 8], eax
mov ecx, edi
lea edx, [esp + 0x68]
call fcn.10041eaa
mov edx, dword [esp + 0x18]
rol edx, 5
mov edi, dword [esp + 8]
xor edx, edi
imul edx, edx, 0x9e3779b9
xor ecx, ecx
inc ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edi
cmp byte [esp + 0xb8], 0
jne 0x1004f9a3
lea ecx, [esp + 0x78]
call fcn.100220ca
mov edi, dword [esp + 0x24]
jmp 0x1004f775
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x489]
mov dword [esp + 0x14], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f241
mov eax, dword [esp + 0x4a8]
mov ecx, dword [esp + 0x4ac]
xor ecx, dword [esp + 0x4ec]
xor eax, dword [esp + 0x4e8]
xor edi, edi
or eax, ecx
mov eax, 0
je 0x1004f2aa
cmp byte [esp + 0x488], 5
mov eax, 0
jne 0x1004f2aa
mov eax, dword [esp + 0x489]
mov dword [esp + 0x1c], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f294
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x1004f439
cmp byte [esp + 0x488], 6
jne 0x1004f439
xor eax, eax
cmp eax, 0x200
jb 0x1004f33e
mov edi, eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f2f7
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x1004f439
cmp byte [esp + 0x488], 6
mov eax, edi
je 0x1004f2ee
jmp 0x1004f439
mov edx, dword [esp + 0x489]
mov ecx, dword [esp + 0x48d]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + 0xc]
mov edi, dword [edi]
mov byte [edi + eax], dl
mov edi, 0x200
cmp eax, 0x1ff
je 0x1004f2f7
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 1], dh
cmp eax, 0x1fd
ja 0x1004f2f7
mov ecx, edx
shr ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x10]
mov byte [eax + ecx + 2], bl
cmp eax, 0x1fd
jne 0x1004f3a9
lea ebx, [esp + 0x498]
jmp 0x1004f2f7
shr edx, 0x18
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 3], dl
cmp eax, 0x1fb
lea ebx, [esp + 0x498]
ja 0x1004f2f7
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov edx, dword [esp + 8]
mov byte [eax + ecx + 4], dl
je 0x1004f2f7
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov edx, dword [esp + 8]
mov byte [eax + ecx + 5], dh
mov ecx, dword [esp + 8]
cmp eax, 0x1f9
ja 0x1004f2f7
shr ecx, 0x10
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov byte [eax + edx + 6], cl
cmp eax, 0x1f9
je 0x1004f2f7
mov edx, dword [esp + 8]
shr edx, 0x18
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 7], dl
add eax, 8
jmp 0x1004f2f5
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor ecx, ecx
mov byte [eax + 0x1ff], cl
mov dword [esp + 0x398], 0
mov dword [esp + 0x39c], 0xf
mov byte [esp + 0x388], cl
mov eax, dword [esp + 0x14]
cmp byte [eax], cl
je 0x1004f48c
test edi, edi
je 0x1004f48c
mov eax, dword [esp + 0x1c]
test al, 0x10
jne 0x1004f4a9
test al, 0x20
jne 0x1004f496
test al, 0x40
je 0x1004f954
jmp 0x1004f97d
test edi, edi
jne 0x1004f4d2
mov edi, dword [esp + 0x14]
jmp 0x1004f4db
lea ecx, [esp + 0x388]
push 4
push 0x100838a3
call fcn.1000783a
mov edi, dword [esp + 0x14]
push edi
call fcn.100785d8
add esp, 4
lea ecx, [esp + 0x388]
push eax
push edi
call fcn.1000783a
lea ecx, [esp + 0x388]
push 0x2e
call fcn.1001763a
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push edi
call fcn.100785d8
add esp, 4
lea ecx, [esp + 0x388]
push eax
push edi
call fcn.1000783a
mov eax, dword [esp + 0x4ac]
mov edx, dword [esp + 0x4a8]
mov ecx, dword [esp + 0x4ec]
mov edi, dword [esp + 0x4e8]
mov dword [esp + 8], eax
xor eax, ecx
mov dword [esp + 0x10], edx
xor edx, edi
mov dword [esp + 0x34], 0
or edx, eax
mov al, byte [esp + 0x488]
je 0x1004f7a3
mov dword [esp + 0x20], 0
cmp al, 8
jne 0x1004f590
mov eax, dword [esp + 0x489]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48d]
mov dword [esp + 0x20], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f553
mov eax, dword [esp + 0x4ac]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x4ec]
mov edi, dword [esp + 0x4e8]
mov al, byte [esp + 0x488]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x10]
xor eax, edi
mov edx, dword [esp + 8]
xor edx, ecx
or edx, eax
mov eax, 0
mov byte [esp + 0x60], al
mov byte [esp + 0x64], al
je 0x1004f7b0
mov al, byte [esp + 0x14]
cmp al, 9
jne 0x1004f60c
mov eax, dword [esp + 0x489]
mov dword [esp + 0x60], eax
xor eax, eax
inc eax
mov dword [esp + 0x64], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f5cf
mov eax, dword [esp + 0x4ac]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x4ec]
mov edi, dword [esp + 0x4e8]
mov al, byte [esp + 0x488]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x10]
xor eax, edi
mov edx, dword [esp + 8]
xor edx, ecx
or edx, eax
mov eax, 0
mov byte [esp + 0x58], al
mov byte [esp + 0x5c], al
je 0x1004f7b9
mov dl, byte [esp + 0x14]
cmp dl, 0xa
jne 0x1004f689
mov eax, dword [esp + 0x489]
mov dword [esp + 0x58], eax
xor eax, eax
inc eax
mov dword [esp + 0x5c], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f64c
mov eax, dword [esp + 0x4ac]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x4ec]
mov edi, dword [esp + 0x4e8]
mov dl, byte [esp + 0x488]
xor ecx, dword [esp + 8]
xor edi, dword [esp + 0x10]
xor eax, eax
mov byte [esp + 0x50], al
mov byte [esp + 0x54], al
or edi, ecx
je 0x1004f6c8
cmp dl, 1
jne 0x1004f6c8
mov eax, dword [esp + 0x489]
mov dword [esp + 0x50], eax
xor eax, eax
inc eax
mov dword [esp + 0x54], eax
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f6b6
movzx eax, byte [esp + 0x1c]
shr eax, 7
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x78]
lea edx, [esp + 0x388]
lea edi, [esp + 0x50]
push edi
lea edi, [esp + 0x5c]
push edi
lea edi, [esp + 0x68]
push edi
push dword [esp + 0x2c]
push dword [esp + 0x44]
push eax
call fcn.1004fbba
add esp, 0x18
mov edi, dword [esp + 8]
mov ecx, edi
lea edx, [esp + 0x78]
call fcn.10041c4a
mov dword [esp + 0x10], eax
mov ecx, edi
lea edx, [esp + 0x68]
call fcn.10041eaa
mov edx, dword [esp + 0x18]
rol edx, 5
mov edi, dword [esp + 0x10]
xor edx, edi
imul edx, edx, 0x9e3779b9
xor ecx, ecx
inc ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edi
cmp byte [esp + 0xb8], 0
mov edi, dword [esp + 0x24]
jne 0x1004f9a3
lea ecx, [esp + 0x78]
call fcn.100220ca
lea ecx, [esp + 0x388]
call fcn.100220ca
mov edx, dword [esp + 0x38]
inc edx
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
jne 0x1004f0e8
jmp 0x1004f869
mov dword [esp + 0x20], 0
jmp 0x1004f590
mov al, byte [esp + 0x14]
jmp 0x1004f60c
mov dl, byte [esp + 0x14]
jmp 0x1004f689
mov ecx, dword [esp + 0x518]
xor ecx, ebp
call fcn.100375ba
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
lea ecx, [esp + 0x78]
mov edx, 0x10081b66
call fcn.1004faba
mov ecx, dword [esp + 8]
lea edx, [esp + 0x78]
call fcn.10041c4a
xor ecx, ecx
mov byte [esp + 0x68], cl
mov byte [esp + 0x6c], cl
mov dword [esp + 0x70], eax
imul eax, eax, 0x9e3779b9
mov dword [esp + 0x18], eax
mov dword [esp + 0x74], eax
cmp byte [esp + 0xb8], cl
jne 0x1004f9a3
lea ecx, [esp + 0x78]
call fcn.100220ca
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x1004efce
xor edx, edx
mov dword [esp + 0x24], edi
jmp 0x1004f0e8
test edx, edx
je 0x1004efce
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x68]
call fcn.10041eaa
mov ecx, dword [esp + 0x4a8]
mov edx, dword [esp + 0x4ac]
xor edx, dword [esp + 0x4ec]
xor ecx, dword [esp + 0x4e8]
or ecx, edx
setne cl
cmp byte [esp + 0x488], 0x10
mov dword [esp + 0x10], eax
sete al
and al, cl
mov byte [esp + 8], al
cmp al, 1
jne 0x1004f8d4
movsd xmm0, qword [esp + 0x489]
movapd xmmword [esp + 0x40], xmm0
mov ecx, ebx
call fcn.100507ca
mov ecx, esi
call fcn.1004fd2a
test al, al
je 0x1004f8c2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
lea eax, [esp + 0x78]
mov dword [eax], ecx
add ecx, 4
mov dword [esp + 0x18], ecx
mov edx, 0x1007d734
xor eax, eax
inc eax
push eax
push 0x1007d778
call fcn.1000fc1a
add esp, 8
lea eax, [esp + 0x78]
xor ecx, ecx
inc ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov edx, 0x1007d734
push 0
push dword [esp + 0x14]
call fcn.1000ceaa
add esp, 8
lea ecx, [esp + 0x78]
xor edx, edx
inc edx
movsd xmm0, qword [esp + 0x28]
call fcn.1005083a
cmp byte [esp + 8], 0
jne 0x1004f990
mov ecx, dword [esp + 0x78]
add ecx, 4
mov edx, 0x1007d7c0
call fcn.1001788a
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
jmp 0x1004efce
mov edi, dword [esp + 0x14]
push edi
call fcn.100785d8
add esp, 4
lea ecx, [esp + 0x388]
push eax
push edi
call fcn.1000783a
lea ecx, [esp + 0x388]
push 0x20
jmp 0x1004f4cd
lea ecx, [esp + 0x388]
push 4
push 0x1008389e
jmp 0x1004f4a4
mov edi, dword [esp + 0x7c]
cmp edi, 2
jne 0x1004f9b8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
jmp 0x1004f9e3
mov dword [0x1008f8f4], 0x100837de
int3
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
add eax, 4
mov dword [esp + 8], eax
add edi, 0xfffffffe
mov ecx, dword [esp + 8]
mov edx, 0x1007d734
push 0x1007d780
call fcn.1004ee0a
add esp, 4
inc edi
jne 0x1004f9ca
mov dword [esp + 0x7c], 3
mov edi, dword [esp + 0x28]
lea ecx, [edi + 4]
mov edx, 0x1007d734
movapd xmm0, xmmword [esp + 0x40]
call fcn.1004eeaa
mov ecx, edi
mov edi, dword [esp + 0x24]
jmp 0x1004f93c
push 0x1008f4ec
call fcn.10036e23
add esp, 4
cmp dword [0x1008f4ec], 0xffffffff
jne 0x1004f15e
push 0x10081793
call dword [0x1008c0b8]
add esp, 4
test eax, eax
jne 0x1004fa3d
xor eax, eax
jmp 0x1004fa43
cmp byte [eax], 0
setne al
mov byte [0x1008f4e8], al
push 0x1008f4ec
call fcn.10036dd9
add esp, 4
jmp 0x1004f15e