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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x14], ebp
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x2c], edx
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x30], edi
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x40], eax
mov ebx, dword [ebp + 0x18]
mov dword [esi + 0x34], ebx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov eax, esp
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], 0xffffffff
lea eax, [esi + 0x70]
mov dword [esi + 0x74], 0x50c120
mov ecx, dword fs:[0]
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov byte [esi + 0x57], 0
mov byte [esi + 0x56], 0
mov byte [esi + 0x57], 1
mov byte [esi + 0x56], 1
mov dword [esi + 0x78], 1
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.005098f0
mov dword [esi + 0x44], eax
jmp 0x50813b
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
mov edx, dword [esi + 0x48]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.0050a780
mov dword [esi + 0x28], eax
jmp 0x508158
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x28]
mov cl, byte [ecx]
mov byte [esi + 0x27], cl
mov byte [esi + 0x6b], cl
cmp dword [eax + 8], 0
jne 0x508180
mov al, byte [esi + 0x27]
movzx ecx, al
mov eax, esp
mov dword [eax], ecx
call fcn.00504db0
mov byte [esi + 0x26], al
jmp 0x508186
mov byte [esi + 0x4f], 0
jmp 0x50818e
mov al, byte [esi + 0x26]
and al, 1
mov byte [esi + 0x4f], al
movzx ecx, byte [esi + 0x4f]
and ecx, 1
mov eax, esp
mov dword [eax], ecx
call fcn.0050aee0
mov byte [esi + 0x25], al
jmp 0x5081a3
mov al, byte [esi + 0x25]
test al, 1
jne 0x5081d5
jmp 0x5081ac
mov bl, byte [esi + 0x27]
mov edi, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x48]
mov eax, esp
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x3c]
mov dword [eax + 0xc], edi
movzx edi, bl
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.0050a000
jmp 0x50821f
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x34]
mov edi, dword [esi + 0x40]
mov byte [esi + 0x56], 0
mov eax, esp
mov dword [eax + 0xc], edi
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], 1
call fcn.00508720
jmp 0x5081fa
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.005098f0
mov dword [esi + 0x20], eax
jmp 0x508217
mov eax, dword [esi + 0x20]
mov dword [esi + 0x48], eax
jmp 0x5081ac
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x48]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00507b90
mov dword [esi + 0x1c], eax
jmp 0x508236
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x50], eax
mov byte [esi + 0x57], 0
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [esi + 0x50]
mov dword [eax], ecx
call fcn.00504cf0
jmp 0x508254
mov eax, dword [esi + 0x50]
mov dword [esi + 0x18], eax
test byte [esi + 0x56], 1
jne 0x508275
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x70]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x508260