Function at 0x10051d83
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.10052340
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 0x100518f5
cmp byte [esp + 0x488], 0x11
je 0x100518f5
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
jne 0x100518b4
jmp 0x100518e1
test al, al
jne 0x100520a8
mov eax, dword [esp + 0x489]
mov dword [esp + 0x3c], eax
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051908
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
cmp dword [esp + 0x3c], eax
je 0x1005192c
test eax, eax
jne 0x100518b4
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 0x100519ab
cmp byte [esp + 0x488], 0x12
jne 0x100519ab
movsd xmm0, qword [esp + 0x489]
movsd qword [esp + 0x28], xmm0
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x1005197d
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x28]
ja 0x100518b4
jmp 0x100520c0
push 2
call dword [0x1008bfc8]
add esp, 4
push 0x1007f977
push 0x1008010e
push eax
call fcn.10016d30
add esp, 0xc
jmp 0x100518b4
mov al, byte [esp + 0x488]
cmp al, 4
je 0x10051b18
cmp al, 0xb
jne 0x10052147
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0x489]
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x100519f0
sub esp, 0x10
mov dword [esp + 8], edi
lea eax, [esp + 0x398]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.10052430
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 0x100522f3
cmp byte [0x1008f4e8], 0
je 0x10051a95
lea eax, [esp + 0x78]
push eax
push edi
call fcn.10065590
add esp, 8
test al, al
je 0x10051a95
lea eax, [esp + 0x388]
push eax
call fcn.1007aebe
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.100657d0
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.100523a0
mov edi, dword [esp + 0x10]
mov ecx, edi
lea edx, [esp + 0x78]
call fcn.10044530
mov dword [esp + 8], eax
mov ecx, edi
lea edx, [esp + 0x68]
call fcn.10044790
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 0x10052289
lea ecx, [esp + 0x78]
call fcn.100249b0
mov edi, dword [esp + 0x24]
jmp 0x1005205b
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x489]
mov dword [esp + 0x14], eax
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051b27
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 0x10051b90
cmp byte [esp + 0x488], 5
mov eax, 0
jne 0x10051b90
mov eax, dword [esp + 0x489]
mov dword [esp + 0x1c], eax
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051b7a
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 0x10051d1f
cmp byte [esp + 0x488], 6
jne 0x10051d1f
xor eax, eax
cmp eax, 0x200
jb 0x10051c24
mov edi, eax
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051bdd
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x10051d1f
cmp byte [esp + 0x488], 6
mov eax, edi
je 0x10051bd4
jmp 0x10051d1f
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 0x10051bdd
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 1], dh
cmp eax, 0x1fd
ja 0x10051bdd
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 0x10051c8f
lea ebx, [esp + 0x498]
jmp 0x10051bdd
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 0x10051bdd
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 0x10051bdd
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 0x10051bdd
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 0x10051bdd
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 0x10051bdb
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 0x10051d72
test edi, edi
je 0x10051d72
mov eax, dword [esp + 0x1c]
test al, 0x10
jne 0x10051d8f
test al, 0x20
jne 0x10051d7c
test al, 0x40
je 0x1005223a
jmp 0x10052263
test edi, edi
jne 0x10051db8
mov edi, dword [esp + 0x14]
jmp 0x10051dc1
lea ecx, [esp + 0x388]
push 4
push 0x100838a3
call fcn.1000a120
mov edi, dword [esp + 0x14]
push edi
call fcn.1007aebe
add esp, 4
lea ecx, [esp + 0x388]
push eax
push edi
call fcn.1000a120
lea ecx, [esp + 0x388]
push 0x2e
call fcn.10019f20
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
push edi
call fcn.1007aebe
add esp, 4
lea ecx, [esp + 0x388]
push eax
push edi
call fcn.1000a120
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 0x10052089
mov dword [esp + 0x20], 0
cmp al, 8
jne 0x10051e76
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.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051e39
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 0x10052096
mov al, byte [esp + 0x14]
cmp al, 9
jne 0x10051ef2
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.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051eb5
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 0x1005209f
mov dl, byte [esp + 0x14]
cmp dl, 0xa
jne 0x10051f6f
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.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051f32
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 0x10051fae
cmp dl, 1
jne 0x10051fae
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.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x10051f9c
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.100524a0
add esp, 0x18
mov edi, dword [esp + 8]
mov ecx, edi
lea edx, [esp + 0x78]
call fcn.10044530
mov dword [esp + 0x10], eax
mov ecx, edi
lea edx, [esp + 0x68]
call fcn.10044790
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 0x10052289
lea ecx, [esp + 0x78]
call fcn.100249b0
lea ecx, [esp + 0x388]
call fcn.100249b0
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 0x100519ce
jmp 0x1005214f
mov dword [esp + 0x20], 0
jmp 0x10051e76
mov al, byte [esp + 0x14]
jmp 0x10051ef2
mov dl, byte [esp + 0x14]
jmp 0x10051f6f
mov ecx, dword [esp + 0x518]
xor ecx, ebp
call fcn.10039ea0
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.100523a0
mov ecx, dword [esp + 8]
lea edx, [esp + 0x78]
call fcn.10044530
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 0x10052289
lea ecx, [esp + 0x78]
call fcn.100249b0
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x100518b4
xor edx, edx
mov dword [esp + 0x24], edi
jmp 0x100519ce
test edx, edx
je 0x100518b4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x68]
call fcn.10044790
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 0x100521ba
movsd xmm0, qword [esp + 0x489]
movapd xmmword [esp + 0x40], xmm0
mov ecx, ebx
call fcn.100530b0
mov ecx, esi
call fcn.10052610
test al, al
je 0x100521a8
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.10012500
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.1000f790
add esp, 8
lea ecx, [esp + 0x78]
xor edx, edx
inc edx
movsd xmm0, qword [esp + 0x28]
call fcn.10053120
cmp byte [esp + 8], 0
jne 0x10052276
mov ecx, dword [esp + 0x78]
add ecx, 4
mov edx, 0x1007d7c0
call fcn.1001a170
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
jmp 0x100518b4
mov edi, dword [esp + 0x14]
push edi
call fcn.1007aebe
add esp, 4
lea ecx, [esp + 0x388]
push eax
push edi
call fcn.1000a120
lea ecx, [esp + 0x388]
push 0x20
jmp 0x10051db3
lea ecx, [esp + 0x388]
push 4
push 0x1008389e
jmp 0x10051d8a
mov edi, dword [esp + 0x7c]
cmp edi, 2
jne 0x1005229e
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
jmp 0x100522c9
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.100516f0
add esp, 4
inc edi
jne 0x100522b0
mov dword [esp + 0x7c], 3
mov edi, dword [esp + 0x28]
lea ecx, [edi + 4]
mov edx, 0x1007d734
movapd xmm0, xmmword [esp + 0x40]
call fcn.10051790
mov ecx, edi
mov edi, dword [esp + 0x24]
jmp 0x10052222
push 0x1008f4ec
call fcn.10039709
add esp, 4
cmp dword [0x1008f4ec], 0xffffffff
jne 0x10051a44
push 0x10081793
call dword [0x1008c0b8]
add esp, 4
test eax, eax
jne 0x10052323
xor eax, eax
jmp 0x10052329
cmp byte [eax], 0
setne al
mov byte [0x1008f4e8], al
push 0x1008f4ec
call fcn.100396bf
add esp, 4
jmp 0x10051a44