Function at 0x49d1d7
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.0049cc17
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 0x49d290
movzx ecx, ax
mov dword [esp + 0x20], ecx
test dl, 1
je 0x49d282
movsx eax, si
movsx ecx, word [eax*2 + 0x5d143c]
mov ebp, dword [eax*4 + 0x5d06cc]
or dword [esp + ecx*4 + 0x54], ebp
lea ecx, [esp + ecx*4 + 0x54]
movsx ecx, word [eax*2 + 0x5d1578]
mov ebp, dword [esp + ecx*4 + 0x54]
mov eax, dword [eax*4 + 0x5d0944]
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 0x49d248
dec edi
sub ebx, 4
test di, di
jge 0x49d22e
lea ecx, [esp + 0xa4]
push ecx
call fcn.0049cc17
lea edx, [esp + 0x80]
push edx
call fcn.0049cc17
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 + 0x5d133c]
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 0x49d31d
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 0x49d315
cmp word [esp + 0x14], 8
jne 0x49d355
test byte [esp + 0x78], 1
je 0x49d2d8
xor eax, eax
movsx ecx, ax
mov edx, dword [esp + ecx*4 + 0x54]
test edx, edx
jne 0x49d36b
inc eax
cmp ax, 9
jb 0x49d357
jmp 0x49d371
cmp ax, 9
jb 0x49d37c
cmp dword [esp + 0x78], 1
je 0x49d753
movsx eax, bp
shl eax, 2
mov ecx, dword [esp + eax + 0x54]
test ecx, ecx
jne 0x49d3a5
mov ecx, dword [esp + eax + 0x2c]
test ecx, ecx
jne 0x49d3a1
inc ebp
movsx eax, bp
shl eax, 2
mov ecx, dword [esp + eax + 0x54]
test ecx, ecx
je 0x49d38a
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 0x49d5aa
cmp bp, 9
ja 0x49d3eb
mov ecx, 0xa
sub ecx, ebp
mov eax, edx
movzx ecx, cx
jmp 0x49d3d7
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 0x49d3d7
cmp di, 9
ja 0x49d427
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 0x49d407
jmp 0x49d427
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
and eax, 0xff
movzx ax, byte [eax + 0x5d133c]
add esi, eax
mov dword [esp + 0x24], esi
xor esi, esi
cmp di, 9
mov dword [esp + 0x14], eax
jg 0x49d4c1
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 0x49d478
test si, si
mov ebp, dword [esp + 0x18]
je 0x49d4b5
mov edi, dword [esp + 0x10]
movsx edx, si
movsx eax, di
mov dword [esp + 0x20], edi
mov dword [esp + eax*4 + 0xa4], edx
jmp 0x49d4b9
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
xor ebx, ebx
cmp bp, 9
ja 0x49d51d
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 0x49d4ef
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 0x49d4eb
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ax, 8
jne 0x49d52e
test byte [esp + 0x78], 1
je 0x49d427
cmp bp, 9
mov eax, ebp
jae 0x49d555
nop
movsx ecx, ax
mov esi, dword [esp + ecx*4 + 0x54]
test esi, esi
jne 0x49d54b
inc eax
cmp ax, 9
jb 0x49d537
jmp 0x49d555
cmp ax, 9
jb 0x49d37c
cmp dword [esp + 0x78], 1
jne 0x49d37c
test ax, ax
jg 0x49d753
mov eax, dword [esp + edx + 0x2c]
test eax, eax
jne 0x49d592
lea ebx, [ebx]
mov eax, dword [esp + edx + 0x54]
test eax, eax
jne 0x49d58e
inc ebp
movsx edx, bp
shl edx, 2
mov eax, dword [esp + edx + 0x2c]
test eax, eax
je 0x49d577
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 0x49d3bd
cmp bp, 9
ja 0x49d5d0
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 0x49d5bc
cmp di, 9
ja 0x49d601
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 0x49d5e7
mov ecx, dword [esp + 0x50]
mov edi, edi
mov esi, dword [esp + 0x24]
and ecx, 0xff
movzx ax, byte [ecx + 0x5d133c]
add esi, eax
mov dword [esp + 0x24], esi
xor esi, esi
cmp di, 9
mov dword [esp + 0x14], eax
jg 0x49d69f
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 0x49d657
test si, si
mov ebp, dword [esp + 0x18]
je 0x49d693
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 0x49d697
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp bp, 9
ja 0x49d6fb
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 0x49d6c7
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 0x49d70e
test cl, 1
je 0x49d607
cmp bp, 9
mov eax, ebp
jae 0x49d735
nop
movsx esi, ax
mov ebx, dword [esp + esi*4 + 0x2c]
test ebx, ebx
jne 0x49d72b
inc eax
cmp ax, 9
jb 0x49d717
jmp 0x49d735
cmp ax, 9
jb 0x49d569
cmp ecx, 1
jne 0x49d569
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.0049cc47
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.0049d027
mov al, byte [esp + 0xac]
mov ebp, dword [esp + 0xe0]
add esp, 0xc
test al, 1
push ebp
je 0x49d794
call fcn.004bcf57
jmp 0x49d799
call fcn.0049cbd7
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 + 0x5d143c]
mov ebx, dword [esp + ebx*4 + 0x7c]
test dword [edx*4 + 0x5d06cc], ebx
je 0x49d7e6
xor esi, eax
mov edx, dword [esp + 0x10]
inc edx
shl eax, 1
test eax, edi
mov dword [esp + 0x10], edx
jne 0x49d7ca
xor dword [ebp], esi
dec ecx
sub ebp, 4
test cx, cx
jge 0x49d7ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret