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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
je 0x49d43f
mov dword [esp], eax
call fcn.0041db40
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.0041dcc0
test eax, eax
mov ebp, eax
je 0x49d43b
mov eax, dword [esp + 0x74]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x78]
add ebx, dword [eax + 4]
add ebx, 4
cmp ebx, dword [ebp + 8]
jg 0x49d427
xor eax, eax
test ebx, ebx
mov dword [ebp + 4], ebx
jle 0x49d281
mov edx, dword [ebp]
mov dword [edx + eax*4], 0
add eax, 1
cmp eax, ebx
jne 0x49d270
mov eax, dword [esp + 0x78]
mov ebx, dword [eax + 4]
test ebx, ebx
jle 0x49d3d1
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], 0
mov ecx, dword [eax + 4]
mov eax, ecx
mov edi, dword [esp + 0x78]
mov dword [esp + 0x24], 0
mov edx, dword [edi]
mov edi, dword [esp + 0x20]
mov ecx, dword [edx + edi*4]
lea esi, [edi*4]
mov dword [esp + 0x28], ecx
lea ecx, [edi + 1]
cmp ebx, ecx
je 0x49d2d0
mov edi, dword [edx + esi + 4]
mov dword [esp + 0x24], edi
test eax, eax
jle 0x49d3c2
mov edi, dword [esp + 0x24]
xor ebx, ebx
xor edi, dword [esp + 0x28]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x74]
lea ecx, [ebx + 1]
xor esi, esi
cmp ecx, eax
mov edx, dword [edi]
lea edi, [ebx*4]
mov dword [esp + 0x1c], edi
mov edi, dword [edx + ebx*4]
je 0x49d30b
mov eax, dword [esp + 0x1c]
mov esi, dword [edx + eax + 4]
mov eax, dword [esp + 0x24]
mov ecx, esi
xor esi, edi
lea edx, [esp + 0x48]
mov dword [esp], eax
lea eax, [esp + 0x4c]
call fcn.0049cb10
mov eax, dword [esp + 0x28]
mov ecx, edi
lea edx, [esp + 0x40]
mov dword [esp], eax
lea eax, [esp + 0x44]
call fcn.0049cb10
mov eax, dword [esp + 0x2c]
mov ecx, esi
lea edx, [esp + 0x3c]
mov dword [esp], eax
lea eax, [esp + 0x38]
call fcn.0049cb10
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
xor eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
xor eax, edx
xor edx, esi
xor eax, esi
xor edx, ecx
xor edx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
xor edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], edx
lea esi, [eax + ebx]
xor eax, eax
shl esi, 2
lea edx, [eax + esi]
add eax, 4
add edx, dword [ebp]
xor dword [edx], ecx
cmp eax, 0x10
je 0x49d3a9
lea edx, [eax + esi]
mov ecx, dword [esp + eax + 0x40]
add eax, 4
add edx, dword [ebp]
xor dword [edx], ecx
cmp eax, 0x10
jne 0x49d395
mov eax, dword [esp + 0x74]
add ebx, 2
mov eax, dword [eax + 4]
cmp eax, ebx
jg 0x49d2e6
mov edi, dword [esp + 0x78]
mov ebx, dword [edi + 4]
add dword [esp + 0x20], 2
cmp ebx, dword [esp + 0x20]
jg 0x49d2a1
mov eax, dword [ebp + 4]
test eax, eax
jle 0x49d3ef
mov edi, dword [ebp]
lea edx, [edi - 4]
jmp 0x49d3e5
sub eax, 1
je 0x49d3ec
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x49d3e0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0049cdc0
test eax, eax
setne bl
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.0041dc40
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0041e270
test eax, eax
jne 0x49d267
xor ebx, ebx
jmp 0x49d40e
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0049d070
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret