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

Disassembly:
sub esp, 0xbc
or eax, 0xffffffff
push ebx
push ebp
push esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
push edi
push eax
mov dword [esp + 0x30], 0x1fffffff
call fcn.0049b075
mov ebx, dword [esp + 0xd4]
add esp, 4
xor esi, esi
mov edi, 4
add ebx, 0x10
mov edx, dword [ebx]
xor eax, eax
test di, di
setg al
lea eax, [eax + eax + 0x1e]
test ax, ax
jle 0x49b6ee
movzx ecx, ax
mov dword [esp + 0x20], ecx
test dl, 1
je 0x49b6e0
movsx eax, si
movsx ecx, word [eax*2 + 0x510480]
mov ebp, dword [eax*4 + 0x50f710]
or dword [esp + ecx*4 + 0x54], ebp
lea ecx, [esp + ecx*4 + 0x54]
movsx ecx, word [eax*2 + 0x5105bc]
mov ebp, dword [esp + ecx*4 + 0x54]
mov eax, dword [eax*4 + 0x50f988]
lea ecx, [esp + ecx*4 + 0x54]
or ebp, eax
mov dword [ecx], ebp
mov eax, dword [esp + 0x20]
inc esi
shr edx, 1
dec eax
mov dword [esp + 0x20], eax
jne 0x49b6a6
dec edi
sub ebx, 4
test di, di
jge 0x49b68c
lea ecx, [esp + 0xa4]
push ecx
call fcn.0049b075
lea edx, [esp + 0x80]
push edx
call fcn.0049b075
add esp, 8
mov edi, 9
xor ebp, ebp
mov dword [esp + 0xa0], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
and eax, 0xff
movzx bx, byte [eax + 0x510100]
movsx eax, bx
mov ecx, 0x20
mov dword [esp + 0x10], 0xa
add esi, ebx
mov dword [esp + 0x24], esi
xor esi, esi
sub ecx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x54]
jmp 0x49b77b
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
movsx esi, si
shl esi, cl
mov ecx, edx
mov dword [esp + 0x1c], ecx
movsx ecx, bx
mov ebx, edx
shr ebx, cl
mov ecx, dword [esp + 0x10]
add eax, 4
or esi, ebx
mov dword [eax - 4], esi
dec ecx
mov esi, edx
mov dword [esp + 0x10], ecx
jne 0x49b773
cmp word [esp + 0x14], 8
jne 0x49b7b3
test byte [esp + 0x78], 1
je 0x49b736
xor eax, eax
movsx ecx, ax
mov edx, dword [esp + ecx*4 + 0x54]
test edx, edx
jne 0x49b7c9
inc eax
cmp ax, 9
jb 0x49b7b5
jmp 0x49b7cf
cmp ax, 9
jb 0x49b7da
cmp dword [esp + 0x78], 1
je 0x49bbb1
movsx eax, bp
shl eax, 2
mov ecx, dword [esp + eax + 0x54]
test ecx, ecx
jne 0x49b803
mov ecx, dword [esp + eax + 0x2c]
test ecx, ecx
jne 0x49b7ff
inc ebp
movsx eax, bp
shl eax, 2
mov ecx, dword [esp + eax + 0x54]
test ecx, ecx
je 0x49b7e8
mov dword [esp + 0x18], ebp
movsx edx, bp
shl edx, 2
mov eax, dword [esp + edx + 0x54]
cmp eax, dword [esp + edx + 0x2c]
mov dword [esp + 0x1c], edx
jb 0x49ba08
cmp bp, 9
ja 0x49b849
mov ecx, 0xa
sub ecx, ebp
mov eax, edx
movzx ecx, cx
jmp 0x49b835
mov ebx, dword [esp + eax + 0x54]
mov esi, dword [esp + eax + 0x2c]
xor ebx, esi
mov dword [esp + eax + 0x54], ebx
add eax, 4
dec ecx
jne 0x49b835
cmp di, 9
ja 0x49b885
movsx eax, di
mov ecx, 0xa
shl eax, 2
sub ecx, edi
movzx ecx, cx
lea ebx, [ebx]
mov ebx, dword [esp + eax + 0x7c]
mov esi, dword [esp + eax + 0xa4]
xor ebx, esi
mov dword [esp + eax + 0x7c], ebx
add eax, 4
dec ecx
jne 0x49b865
jmp 0x49b885
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
and eax, 0xff
movzx ax, byte [eax + 0x510100]
add esi, eax
mov dword [esp + 0x24], esi
xor esi, esi
cmp di, 9
mov dword [esp + 0x14], eax
jg 0x49b91f
movsx ebp, ax
mov ecx, 0xa
mov eax, 0x20
sub eax, ebp
sub ecx, edi
mov dword [esp + 0x28], eax
movzx edi, cx
mov eax, 9
sub eax, edi
lea edx, [esp + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov ebx, eax
mov ecx, ebp
shl ebx, cl
movsx ecx, si
or ebx, ecx
mov ecx, dword [esp + 0x28]
shr eax, cl
mov dword [edx], ebx
sub edx, 4
dec edi
mov esi, eax
jne 0x49b8d6
test si, si
mov ebp, dword [esp + 0x18]
je 0x49b913
mov edi, dword [esp + 0x10]
movsx edx, si
movsx eax, di
mov dword [esp + 0x20], edi
mov dword [esp + eax*4 + 0xa4], edx
jmp 0x49b917
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
xor ebx, ebx
cmp bp, 9
ja 0x49b97b
movsx esi, ax
lea eax, [esp + edx + 0x54]
mov ecx, 0x20
sub ecx, esi
mov edx, 0xa
sub edx, ebp
movzx edx, dx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
jmp 0x49b94d
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
movsx ebx, bx
shl ebx, cl
mov ecx, esi
mov ebp, edx
shr ebp, cl
mov ecx, dword [esp + 0x10]
add eax, 4
or ebx, ebp
mov dword [eax - 4], ebx
dec ecx
mov ebx, edx
mov dword [esp + 0x10], ecx
jne 0x49b949
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ax, 8
jne 0x49b98c
test byte [esp + 0x78], 1
je 0x49b885
cmp bp, 9
mov eax, ebp
jae 0x49b9b3
nop
movsx ecx, ax
mov esi, dword [esp + ecx*4 + 0x54]
test esi, esi
jne 0x49b9a9
inc eax
cmp ax, 9
jb 0x49b995
jmp 0x49b9b3
cmp ax, 9
jb 0x49b7da
cmp dword [esp + 0x78], 1
jne 0x49b7da
test ax, ax
jg 0x49bbb1
mov eax, dword [esp + edx + 0x2c]
test eax, eax
jne 0x49b9f0
lea ebx, [ebx]
mov eax, dword [esp + edx + 0x54]
test eax, eax
jne 0x49b9ec
inc ebp
movsx edx, bp
shl edx, 2
mov eax, dword [esp + edx + 0x2c]
test eax, eax
je 0x49b9d5
mov dword [esp + 0x18], ebp
movsx edx, bp
shl edx, 2
mov eax, dword [esp + edx + 0x2c]
cmp eax, dword [esp + edx + 0x54]
mov dword [esp + 0x1c], edx
jb 0x49b81b
cmp bp, 9
ja 0x49ba2e
mov ecx, 0xa
sub ecx, ebp
mov eax, edx
movzx ecx, cx
mov ebx, dword [esp + eax + 0x2c]
mov esi, dword [esp + eax + 0x54]
xor ebx, esi
mov dword [esp + eax + 0x2c], ebx
add eax, 4
dec ecx
jne 0x49ba1a
cmp di, 9
ja 0x49ba5f
movsx eax, di
mov ecx, 0xa
shl eax, 2
sub ecx, edi
movzx ecx, cx
nop
mov ebx, dword [esp + eax + 0xa4]
mov esi, dword [esp + eax + 0x7c]
xor ebx, esi
mov dword [esp + eax + 0xa4], ebx
add eax, 4
dec ecx
jne 0x49ba45
mov ecx, dword [esp + 0x50]
mov edi, edi
mov esi, dword [esp + 0x24]
and ecx, 0xff
movzx ax, byte [ecx + 0x510100]
add esi, eax
mov dword [esp + 0x24], esi
xor esi, esi
cmp di, 9
mov dword [esp + 0x14], eax
jg 0x49bafd
movsx ebp, ax
mov eax, 0x20
sub eax, ebp
mov dword [esp + 0x28], eax
mov eax, 0xa
sub eax, edi
movzx edi, ax
mov eax, 9
sub eax, edi
lea edx, [esp + 0xa0]
mov dword [esp + 0x10], eax
mov edi, edi
mov eax, dword [edx]
mov ebx, eax
mov ecx, ebp
shl ebx, cl
movsx ecx, si
or ebx, ecx
mov ecx, dword [esp + 0x28]
shr eax, cl
mov dword [edx], ebx
sub edx, 4
dec edi
mov esi, eax
jne 0x49bab5
test si, si
mov ebp, dword [esp + 0x18]
je 0x49baf1
mov eax, dword [esp + 0x10]
mov edi, eax
movsx edx, si
movsx eax, ax
mov dword [esp + 0x20], edi
mov dword [esp + eax*4 + 0x7c], edx
jmp 0x49baf5
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp bp, 9
ja 0x49bb59
movsx esi, ax
lea eax, [esp + edx + 0x2c]
mov edi, 0x20
mov edx, 0xa
sub edi, esi
sub edx, ebp
movzx edx, dx
mov dword [esp + 0x10], edx
lea esp, [esp]
mov edx, dword [eax]
movsx ebx, cx
mov ecx, edi
shl ebx, cl
mov ebp, edx
mov ecx, esi
shr ebp, cl
mov ecx, edx
mov edx, dword [esp + 0x10]
add eax, 4
or ebx, ebp
mov dword [eax - 4], ebx
dec edx
mov dword [esp + 0x10], edx
jne 0x49bb25
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
cmp ax, 8
mov ecx, dword [esp + 0x50]
jne 0x49bb6c
test cl, 1
je 0x49ba65
cmp bp, 9
mov eax, ebp
jae 0x49bb93
nop
movsx esi, ax
mov ebx, dword [esp + esi*4 + 0x2c]
test ebx, ebx
jne 0x49bb89
inc eax
cmp ax, 9
jb 0x49bb75
jmp 0x49bb93
cmp ax, 9
jb 0x49b9c7
cmp ecx, 1
jne 0x49b9c7
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.0049b0a5
add esp, 8
movsx eax, word [esp + 0x24]
lea edx, [esp + 0x7c]
push edx
cdq
mov ecx, 0x13d
idiv ecx
mov eax, ecx
lea ecx, [esp + 0x80]
sub eax, edx
push eax
push ecx
call fcn.0049b485
mov al, byte [esp + 0xac]
mov ebp, dword [esp + 0xe0]
add esp, 0xc
test al, 1
push ebp
je 0x49bbf2
call fcn.004bb325
jmp 0x49bbf7
call fcn.0049b035
add esp, 4
mov dword [esp + 0x10], 0
mov ecx, 4
add ebp, 0x10
xor edx, edx
xor esi, esi
test cx, cx
setle dl
mov eax, 1
dec edx
and edx, 0xc0000000
add edx, 0x3fffffff
mov edi, edx
movsx edx, word [esp + 0x10]
movsx ebx, word [edx*2 + 0x510480]
mov ebx, dword [esp + ebx*4 + 0x7c]
test dword [edx*4 + 0x50f710], ebx
je 0x49bc44
xor esi, eax
mov edx, dword [esp + 0x10]
inc edx
shl eax, 1
test eax, edi
mov dword [esp + 0x10], edx
jne 0x49bc28
xor dword [ebp], esi
dec ecx
sub ebp, 4
test cx, cx
jge 0x49bc0a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret