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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov ebx, eax
mov eax, ebx
mov edx, dword [0x514350]
call fcn.00405304
test al, al
je 0x5179b5
mov eax, dword [ebx + 0x2a4]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, ebx
call fcn.00515634
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x2c8]
lea edx, [ebp - 0x88]
mov eax, ebx
call fcn.0051575c
mov dword [ebp - 0x24], 1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x5c]
mov byte [ebp - 0x25], al
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, ebx
call fcn.005151cc
cmp eax, 2
sete byte [ebp - 0x2d]
mov byte [ebp - 0x35], 0
mov eax, ebx
call fcn.005151cc
mov dword [ebp - 0x34], eax
movzx eax, byte [0x5183c0]
mov byte [ebp - 0x26], al
movzx eax, byte [ebx + 0x301]
mov byte [ebp - 0x36], al
jmp 0x517aed
mov eax, ebx
mov edx, dword [0x597f9c]
call fcn.00405304
test al, al
je 0x517a52
mov eax, dword [ebx + 0x31c]
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004fcb54
mov edi, eax
mov eax, dword [ebx + 0x318]
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x2e4]
lea edx, [ebp - 0x88]
mov eax, ebx
call fcn.005990f8
mov eax, ebx
call fcn.004fce64
and eax, 0x7f
mov dword [ebp - 0x24], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x5c]
mov byte [ebp - 0x25], al
mov eax, dword [ebx + 0x310]
mov dword [ebp - 0x2c], eax
mov eax, ebx
call fcn.0059903c
mov byte [ebp - 0x2d], al
movzx eax, byte [ebx + 0x30d]
mov byte [ebp - 0x35], al
mov eax, ebx
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebx + 0x30c]
mov byte [ebp - 0x26], al
movzx eax, byte [ebx + 0x344]
mov byte [ebp - 0x36], al
jmp 0x517aed
mov eax, ebx
mov edx, dword [0x535338]
call fcn.00405304
test al, al
je 0x5183b8
mov eax, dword [ebx + 0x20c]
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004fbe28
mov edi, eax
mov eax, dword [ebx + 0x208]
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x1e0]
lea edx, [ebp - 0x88]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, ebx
call fcn.004fbe50
and eax, 0x7f
mov dword [ebp - 0x24], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x5c]
mov byte [ebp - 0x25], al
mov eax, dword [ebx + 0x200]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx + 0x1b8]
mov byte [ebp - 0x2d], al
movzx eax, byte [ebx + 0x1fd]
mov byte [ebp - 0x35], al
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc4]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebx + 0x1fc]
mov byte [ebp - 0x26], al
movzx eax, byte [ebx + 0x232]
mov byte [ebp - 0x36], al
xor edx, edx
mov eax, esi
call fcn.005c2834
test al, al
je 0x517b3f
mov eax, esi
call fcn.005c22b4
mov eax, dword [eax + 0xd8]
imul edx, dword [esi + 0x28], 0x43
mov edx, dword [eax + edx*4 + 0xa0]
cmp dword [ebp - 0x34], 0
sete al
and al, byte [ebp - 0x35]
jne 0x517b2e
cmp byte [ebp - 0x25], 0
jne 0x517b2a
test byte [ebp - 0x26], 2
jne 0x517b2e
xor eax, eax
jmp 0x517b30
mov al, 1
mov ecx, 0x1fffffff
call fcn.005df26c
mov dword [ebp - 0x3c], eax
jmp 0x517b76
mov eax, 0xff00000f
call fcn.00458254
mov edx, eax
cmp dword [ebp - 0x34], 0
sete al
and al, byte [ebp - 0x35]
jne 0x517b67
cmp byte [ebp - 0x25], 0
jne 0x517b63
test byte [ebp - 0x26], 2
jne 0x517b67
xor eax, eax
jmp 0x517b69
mov al, 1
mov ecx, 0x1fffffff
call fcn.005df26c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x14], 0
jne 0x517b87
mov eax, dword [esi + 0x44]
call fcn.00460284
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
je 0x517ed3
cmp dword [ebp - 0x10], 0xffffffff
jle 0x517ed3
mov eax, dword [ebp - 8]
call fcn.00517830
cmp eax, dword [ebp - 0x10]
jle 0x517ed3
push esi
lea esi, [ebp - 0x88]
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [0x59b82c]
call fcn.00405304
test al, al
jne 0x517be3
mov eax, dword [ebp - 8]
mov edx, dword [0x696a00]
call fcn.00405304
test al, al
je 0x517cd0
xor edx, edx
mov eax, esi
call fcn.005c2834
test al, al
je 0x517c5f
cmp dword [ebp - 0x34], 0
sete al
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.005df26c
mov ebx, eax
cmp byte [ebp - 0x25], 0
jne 0x517c0f
test byte [ebp - 0x26], 1
jne 0x517c13
xor eax, eax
jmp 0x517c15
mov al, 1
xor ecx, ecx
mov edx, 0x32
call fcn.005df26c
cmp eax, ebx
jge 0x517c27
mov eax, ebx
mov edx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x10]
push edx
push eax
mov eax, dword [ebp - 0x3c]
push eax
movzx eax, byte [ebp - 0x2d]
add eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push eax
movzx eax, byte [ebp - 0x36]
push eax
lea eax, [ebp - 0xa0]
push eax
mov edx, dword [esi + 0x44]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.0059bf8c
jmp 0x5183b8
mov eax, dword [ebp - 0x14]
call fcn.0045a64c
mov ebx, eax
cmp dword [ebp - 0x34], 0
sete al
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.005df26c
mov esi, eax
cmp byte [ebp - 0x25], 0
jne 0x517c88
test byte [ebp - 0x26], 1
jne 0x517c8c
xor eax, eax
jmp 0x517c8e
mov al, 1
xor ecx, ecx
mov edx, 0x32
call fcn.005df26c
cmp eax, esi
jge 0x517ca0
mov eax, esi
mov edx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x10]
push edx
push eax
mov eax, dword [ebp - 0x3c]
push eax
movzx eax, byte [ebp - 0x2d]
add eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push eax
movzx eax, byte [ebp - 0x36]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0059c244
jmp 0x5183b8
mov dl, 1
mov eax, dword [0x455f9c]
call fcn.0045f964
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x517ecc
push dword fs:[edx]
mov dword fs:[edx], esp
push ebp
call fcn.0051785c
pop ecx
xor edx, edx
mov eax, esi
call fcn.005c2834
test al, al
je 0x517e57
cmp byte [ebp - 0x25], 0
jne 0x517da8
test byte [ebp - 0x26], 2
je 0x517d3a
mov eax, dword [ebp - 4]
call fcn.00460284
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.005b7840
test byte [ebp - 0x26], 1
je 0x517d8d
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00434cd0
lea eax, [ebp - 0xb4]
push eax
push 0x3fe00000
push 0
push 0xff00ff
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
call fcn.005b9298
jmp 0x517eb1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 4]
call fcn.005bc250
jmp 0x517eb1
mov eax, esi
call fcn.005c1fc8
xor al, 1
and al, byte [ebp - 0x35]
je 0x517ddb
mov eax, dword [ebp - 4]
call fcn.00460284
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.005b7840
mov eax, esi
call fcn.005c1fc8
test al, al
jne 0x517e3f
cmp dword [ebp - 0x2c], 0
jle 0x517e3f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00434cd0
lea eax, [ebp - 0xb4]
push eax
fild dword [ebp - 0x2c]
fdiv dword [0x5183c4]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0xff00ff
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
call fcn.005b9298
jmp 0x517eb1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 4]
call fcn.005bc250
jmp 0x517eb1
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, 0xff00ff
mov eax, dword [ebp - 4]
call fcn.00461748
cmp byte [ebp - 0x25], 0
jne 0x517e9f
test byte [ebp - 0x26], 2
je 0x517e9f
mov eax, dword [ebp - 4]
call fcn.00460284
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.005b7840
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5183b8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.004050e8
ret
test edi, edi
je 0x5183b8
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x5183b8
mov eax, edi
call fcn.00460384
test al, al
je 0x517f18
cmp byte [ebp - 0x25], 0
je 0x517f18
mov eax, dword [0x6a1d40]
cmp byte [eax], 0
je 0x517fc5
mov eax, edi
call fcn.00460384
cmp al, 7
jne 0x517fc5
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax