Function at 0x495290
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov eax, 1
push edi
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
xor ebp, ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [0x5535e0], eax
mov word [0x51575c], di
mov word [0x51575e], ax
mov word [0x515760], 2
mov word [0x515762], 3
call fcn.00496040
push edi
call fcn.00496210
lea eax, [esp + 0x5c]
mov ebx, 0x101
or esi, 0xffffffff
push eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], 0x3f800000
mov word [esp + 0x90], bx
mov dword [esp + 0x84], esi
mov dword [esp + 0x64], 0x41200000
mov dword [esp + 0x70], ebp
mov dword [esp + 0x7c], 0x3f800000
mov word [esp + 0x92], bx
mov dword [esp + 0x88], 0xffffff
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], 0x41200000
mov dword [esp + 0x80], 0x3f800000
mov word [esp + 0x94], bx
mov dword [esp + 0x8c], esi
mov word [esp + 0x98], di
call fcn.00497050
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebp
push ecx
mov dword [esp + 0x70], 0x41200000
mov dword [esp + 0x7c], 0x3f800000
mov word [esp + 0x94], bx
mov dword [esp + 0x88], esi
mov dword [esp + 0x68], 0x41200000
mov dword [esp + 0x74], 0x41200000
mov dword [esp + 0x80], 0x3f800000
mov word [esp + 0x96], bx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], 0x41a00000
mov dword [esp + 0x84], 0x3f800000
mov word [esp + 0x98], bx
mov dword [esp + 0x90], esi
mov word [esp + 0x9c], 0x800
call fcn.00497050
mov dword [esp + 0x64], ebp
mov dword [esp + 0x70], 0x41200000
mov dword [esp + 0x7c], 0x3f800000
mov word [esp + 0x94], bx
mov dword [esp + 0x88], esi
mov dword [esp + 0x68], 0x41200000
mov dword [esp + 0x74], 0x41200000
mov dword [esp + 0x80], 0x3f800000
mov word [esp + 0x96], bx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], 0x41a00000
mov dword [esp + 0x84], 0x3f800000
mov word [esp + 0x98], bx
mov dword [esp + 0x90], esi
mov word [esp + 0x9c], 0x800
lea edx, [esp + 0x64]
push edx
call fcn.00497050
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ebp
push eax
mov dword [esp + 0x78], 0x41a00000
mov dword [esp + 0x84], 0x3f800000
mov word [esp + 0x9c], bx
mov dword [esp + 0x90], esi
mov dword [esp + 0x70], 0x41200000
mov dword [esp + 0x7c], 0x41a00000
mov dword [esp + 0x88], 0x3f800000
mov word [esp + 0x9e], bx
mov dword [esp + 0x94], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x80], 0x41f00000
mov dword [esp + 0x8c], 0x3f800000
mov word [esp + 0xa0], bx
mov dword [esp + 0x98], esi
mov word [esp + 0xa4], di
call fcn.00497050
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], ebp
push ecx
mov dword [esp + 0x7c], 0x41a00000
mov dword [esp + 0x88], 0x3f800000
mov word [esp + 0xa0], bx
mov dword [esp + 0x94], esi
mov dword [esp + 0x74], 0x41200000
mov dword [esp + 0x80], 0x41a00000
mov dword [esp + 0x8c], 0x3f800000
mov word [esp + 0xa2], bx
mov dword [esp + 0x98], esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x84], 0x41f00000
mov dword [esp + 0x90], 0x3f800000
mov word [esp + 0xa4], bx
mov dword [esp + 0x9c], esi
mov word [esp + 0xa8], 0x1800
call fcn.00497050
lea edx, [esp + 0x70]
mov eax, 0xfdfd
push edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x80], 0x41f00000
mov dword [esp + 0x8c], 0x3f800000
mov word [esp + 0xa4], ax
mov dword [esp + 0x98], esi
mov dword [esp + 0x78], 0x41200000
mov dword [esp + 0x84], 0x41f00000
mov dword [esp + 0x90], 0x3f800000
mov word [esp + 0xa6], ax
mov dword [esp + 0x9c], esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x88], 0x42200000
mov dword [esp + 0x94], 0x3f800000
mov word [esp + 0xa8], ax
mov dword [esp + 0xa0], esi
mov word [esp + 0xac], di
call fcn.00497050
lea eax, [esp + 0x74]
mov dword [esp + 0x34], 0x28
push eax
mov dword [0x515754], 0x53acf4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x84], 0x42200000
mov dword [esp + 0x90], 0x3f800000
mov word [esp + 0xa8], 0xf5
mov dword [esp + 0x9c], esi
mov dword [esp + 0x7c], 0x41200000
mov dword [esp + 0x88], 0x42200000
mov dword [esp + 0x94], 0x3f800000
mov word [esp + 0xaa], 0xaf5
mov dword [esp + 0xa0], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x8c], 0x42480000
mov dword [esp + 0x98], 0x3f800000
mov word [esp + 0xac], 0xff
mov dword [esp + 0xa4], esi
mov word [esp + 0xb0], 0x40
call fcn.00497050
lea ecx, [esp + 0x78]
mov dword [0x515754], 0x53a808
push ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x88], 0x42480000
mov dword [esp + 0x94], 0x3f800000
mov word [esp + 0xac], 0xf5
mov dword [esp + 0xa0], esi
mov dword [esp + 0x80], 0x41200000
mov dword [esp + 0x8c], 0x42480000
mov dword [esp + 0x98], 0x3f800000
mov word [esp + 0xae], 0xaf5
mov dword [esp + 0xa4], esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x90], 0x42700000
mov dword [esp + 0x9c], 0x3f800000
mov word [esp + 0xb0], 0xff
mov dword [esp + 0xa8], esi
mov word [esp + 0xb4], 0x40
call fcn.00497050
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], ebp
push edx
mov dword [esp + 0x8c], 0x42700000
mov dword [esp + 0x98], 0x3f800000
mov word [esp + 0xb0], bx
mov dword [esp + 0xa4], esi
mov dword [esp + 0x84], 0x41200000
mov dword [esp + 0x90], 0x42700000
mov dword [esp + 0x9c], 0x3f800000
mov word [esp + 0xb2], bx
mov dword [esp + 0xa8], esi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x94], 0x428c0000
mov dword [esp + 0xa0], 0x3f800000
mov word [esp + 0xb4], bx
mov dword [esp + 0xac], esi
mov word [esp + 0xb8], di
call fcn.00497050
lea eax, [esp + 0x80]
mov dword [esp + 0x80], ebp
push eax
mov dword [esp + 0x90], 0x42700000
mov dword [esp + 0x9c], 0x3f800000
mov word [esp + 0xb4], bx
mov dword [esp + 0xa8], esi
mov dword [esp + 0x88], 0x41200000
mov dword [esp + 0x94], 0x42700000
mov dword [esp + 0xa0], 0x3f800000
mov word [esp + 0xb6], bx
mov dword [esp + 0xac], esi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x98], 0x428c0000
mov dword [esp + 0xa4], 0x3f800000
mov word [esp + 0xb8], bx
mov dword [esp + 0xb0], esi
mov word [esp + 0xbc], 0x1000
call fcn.00497050
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], ebp
push ecx
mov dword [esp + 0x94], 0x428c0000
mov dword [esp + 0xa0], 0x3f800000
mov word [esp + 0xb8], bx
mov dword [esp + 0xac], esi
mov dword [esp + 0x8c], 0x41200000
mov dword [esp + 0x98], 0x428c0000
mov dword [esp + 0xa4], 0x3f800000
mov word [esp + 0xba], bx
mov dword [esp + 0xb0], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x9c], 0x42a00000
mov dword [esp + 0xa8], 0x3f800000
mov word [esp + 0xbc], bx
mov dword [esp + 0xb4], esi
mov word [esp + 0xc0], di
call fcn.00497050
call fcn.00496350
lea edx, [esp + 0x7c]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
push edi
call fcn.00494d50
mov eax, dword [esp + 0x5c]
add esp, 0x48
cmp eax, edi
je 0x495cf8
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
call ebp
lea ebx, [eax + 0x1f4]
call ebp
cmp eax, ebx
jae 0x4959e6
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + eax*8]
lea edx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
shl edx, 3
mov al, byte [esi + ecx*2 + 4]
mov cl, byte [esi + ecx*2 + 2]
and eax, 0x1f
and ecx, 0x1f
add eax, ecx
mov cl, byte [esi + edx*2 + 4]
mov dl, byte [esi + edx*2 + 2]
and ecx, 0x1f
add eax, ecx
and edx, 0x1f
add eax, edx
jne 0x4959ea
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp eax, ebx
jb 0x495999
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
lea ebp, [ecx + ecx]
mov al, byte [esi + ebp*2 + 8]
mov dl, byte [esi + ebp*2 + 6]
and eax, 0x1f
and edx, 0x1f
add eax, edx
mov dl, byte [esi + ecx*2 + 8]
and edx, 0x1f
mov bl, byte [esi + ebp*2 + 2]
add eax, edx
mov dl, byte [esi + ecx*2 + 6]
and edx, 0x1f
and ebx, 0x1f
add eax, edx
mov dl, byte [esi + ebp*2 + 4]
and edx, 0x1f
add edx, ebx
mov bl, byte [esi + ecx*2 + 4]
and ebx, 0x1f
add edx, ebx
mov bl, byte [esi + ecx*2 + 2]
and ebx, 0x1f
add edx, ebx
cmp edx, eax
jle 0x495a6e
mov dl, byte [esi + ebp*2 + 0xc]
mov bl, byte [esi + ebp*2 + 0xa]
and edx, 0x1f
and ebx, 0x1f
add edx, ebx
mov bl, byte [esi + ecx*2 + 0xc]
and ebx, 0x1f
mov dword [esp + 0x28], 1
add edx, ebx
mov bl, byte [esi + ecx*2 + 0xa]
and ebx, 0x1f
add edx, ebx
cmp eax, edx
jg 0x495a72
mov dword [esp + 0x28], edi
lea eax, [ecx + ecx*4]
lea edi, [ecx + ecx*8]
shl edi, 3
lea edx, [ecx + eax*2]
lea eax, [ecx + ecx*8]
shl eax, 3
sub edi, ecx
mov dword [esp + 0x40], edx
mov dl, byte [esi + eax*2 + 2]
mov dword [esp + 0x48], eax
mov bl, byte [esi + edi*2 + 2]
mov al, byte [esi + eax*2 + 4]
and edx, 0x1f
and ebx, 0x1f
and eax, 0x1f
add edx, ebx
add edx, eax
mov al, byte [esi + edi*2 + 4]
lea ebp, [ecx + ecx*2]
and eax, 0x1f
shl ebp, 2
mov dword [esp + 0x4c], edi
lea edi, [edx + eax]
mov dl, byte [esi + ebp*2 + 4]
mov al, byte [esi + ebp*2 + 2]
mov ebp, dword [esp + 0x40]
and edx, 0x1f
and eax, 0x1f
add edx, eax
mov al, byte [esi + ebp*2 + 4]
and eax, 0x1f
add edx, eax
mov al, byte [esi + ebp*2 + 2]
and eax, 0x1f
add edx, eax
xor eax, eax
cmp edx, edi
lea edx, [ecx + ecx*4]
setg al
mov dword [esp + 0x40], eax
lea eax, [ecx*8]
sub eax, ecx
lea ebp, [ecx + edx*2]
shl ebp, 1
lea eax, [eax + eax*2]
mov dl, byte [esi + eax*2 + 4]
mov al, byte [esi + eax*2 + 2]
and edx, 0x1f
and eax, 0x1f
add edx, eax
mov al, byte [esi + ebp*2 + 4]
and eax, 0x1f
add edx, eax
mov al, byte [esi + ebp*2 + 2]
and eax, 0x1f
mov ebp, ecx
add edx, eax
xor eax, eax
cmp edx, edi
mov edi, ecx
setl al
shl ebp, 5
sub ebp, ecx
mov dword [esp + 0x38], eax
shl edi, 5
mov dl, byte [esi + ebp*2 + 4]
mov al, byte [esi + ebp*2 + 2]
and edx, 0x1f
and eax, 0x1f
add edx, eax
mov al, byte [esi + edi*2 + 4]
and eax, 0x1f
add edx, eax
mov al, byte [esi + edi*2 + 2]
and eax, 0x1f
add edx, eax
xor eax, eax
cmp edx, 8
setle al
mov dword [esp + 0x3c], eax
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
lea eax, [ecx + ecx*4]
xor edi, edi
shl eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
lea ebp, [edx + eax]
mov eax, ebp
imul eax, ecx
inc ebp
mov dword [esp + 0x18], eax
imul ebp, ecx
add eax, edi
lea edx, [edi + ebp]
mov dword [esp + 0x20], eax
mov bl, byte [esi + eax*2]
mov dl, byte [esi + edx*2]
and ebx, 0x1f
and edx, 0x1f
mov eax, ebx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, ebx
mov dl, byte [esi + edx*2 + 2]
mov ebx, dword [esp + 0x24]
and edx, 0x1f
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
add eax, ebx
add eax, edx
mov edx, dword [esp + 0x10]
add edx, 0xa
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x30]
add eax, edx
add ebp, edx
mov dword [esp + 0x18], eax
add eax, edi
mov dword [esp + 0x20], eax
mov bl, byte [esi + eax*2]
lea eax, [edi + ebp]
and ebx, 0x1f
mov dl, byte [esi + eax*2]
mov eax, ebx
and edx, 0x1f
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, ebx
mov dl, byte [esi + edx*2 + 2]
mov ebx, dword [esp + 0x2c]
and edx, 0x1f
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
add eax, ebx
lea ebx, [eax + edx]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub edx, 0xa
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x30]
sub ebp, edx
sub eax, edx
inc edi
mov dword [esp + 0x2c], ebx
cmp edi, 3
mov dword [esp + 0x18], eax
jl 0x495b94
mov edx, dword [esp + 0x34]
inc edx
cmp edx, 3
mov dword [esp + 0x34], edx
jl 0x495b75
mov eax, dword [esp + 0x24]
mov dword [0x515754], 0x53acf4
cmp eax, ebx
jge 0x495c8f
mov dword [0x515754], 0x53a808
lea edx, [ecx + ecx*2]
mov eax, ecx
shl eax, 5
lea edx, [edx + edx*4]
sub eax, ecx
mov ebp, dword [esp + 0x4c]
lea edi, [ecx + edx*4]
shl eax, 1
mov cl, byte [esi + edi*2 + 4]
mov dl, byte [esi + edi*2 + 2]
mov edi, dword [esp + 0x48]
and ecx, 0x1f
and edx, 0x1f
add ecx, edx
mov dl, byte [esi + eax*2 + 4]
mov al, byte [esi + eax*2 + 2]
and edx, 0x1f
add ecx, edx
mov dl, byte [esi + edi*2 + 2]
and eax, 0x1f
and edx, 0x1f
add ecx, eax
mov al, byte [esi + ebp*2 + 2]
and eax, 0x1f
add edx, eax
mov al, byte [esi + edi*2 + 4]
and eax, 0x1f
add edx, eax
mov al, byte [esi + ebp*2 + 4]
and eax, 0x1f
add edx, eax
xor eax, eax
cmp ecx, edx
setl al
mov ebp, eax
xor edi, edi
call fcn.00494e50
mov ecx, dword [esp + 0x28]
cmp ebp, edi
mov dword [0x5535e0], ecx
jne 0x495d12
mov word [0x515760], di
cmp dword [esp + 0x38], edi
jne 0x495d1f
mov word [0x515762], di
cmp dword [esp + 0x3c], edi
je 0x495d38
cmp dword [esp + 0x40], edi
je 0x495d38
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret