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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
push esi
lea eax, [esp + 0x70]
mov edi, ecx
push eax
mov dword [esp + 0x18], edi
call fcn.0049b0c0
cmp eax, 3
je 0x49c4b3
mov ebx, dword [esp + 0x60]
mov eax, dword [esi + 8]
mov ebp, dword [esi]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x1c], eax
sub eax, ebp
mov dword [esp + 0x30], edx
cdq
sub eax, edx
mov dword [esp + 0x3c], ecx
sar eax, 1
shr ecx, 1
cmp ecx, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x64], eax
ja 0x49bcc9
mov dword [esp + 0x64], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
shr edx, 1
cmp edx, eax
mov dword [esp + 0x24], ecx
jbe 0x49bcea
mov edx, eax
mov eax, dword [esp + 0x64]
lea esi, [eax + ebp]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], eax
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x6c]
cmp ebp, edx
mov dword [esp + 0x64], eax
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ecx
mov eax, ebp
jge 0x49bd24
mov eax, edx
mov edx, dword [esp + 0x70]
cmp ecx, edx
mov dword [esp + 0x34], edx
jl 0x49bd34
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x74]
cmp esi, ecx
jg 0x49bd3e
mov ecx, esi
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x14]
cmp esi, edx
jg 0x49bd4c
mov edx, esi
sub esp, 0x10
mov esi, esp
mov dword [esi], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov esi, dword [esp + 0x78]
push ebx
push esi
mov ecx, edi
call fcn.0049b890
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jge 0x49bd93
mov eax, ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x24]
cmp edx, ecx
mov dword [esp + 0x68], ecx
jl 0x49bda7
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
cmp edx, ecx
mov dword [esp + 0x34], ecx
jg 0x49bdbb
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
cmp edx, ecx
jg 0x49bdc9
mov ecx, edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 8], eax
push ebx
mov dword [edx + 0xc], ecx
push esi
mov ecx, edi
call fcn.0049b890
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x6c]
cmp ebp, ecx
mov dword [esp + 0x38], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], ebp
mov eax, ebp
jge 0x49be0a
mov eax, ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
cmp edx, ecx
mov dword [esp + 0x68], ecx
jl 0x49be1e
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
cmp edx, ecx
mov dword [esp + 0x34], ecx
jg 0x49be32
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jg 0x49be40
mov ecx, edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 8], eax
push ebx
mov dword [edx + 0xc], ecx
push esi
mov ecx, edi
call fcn.0049b890
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
mov dword [ebx + 0x1c], edx
jge 0x49be7d
mov eax, ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
cmp edx, ecx
mov dword [esp + 0x68], ecx
jl 0x49be91
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
cmp edx, ecx
mov dword [esp + 0x34], ecx
jg 0x49bea5
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jg 0x49beb3
mov ecx, edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 8], eax
push ebx
mov dword [edx + 0xc], ecx
push esi
mov ecx, edi
call fcn.0049b890
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
shr eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
shr eax, 1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jge 0x49befc
mov ecx, eax
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x24]
cmp eax, edx
mov dword [esp + 0x34], edx
jl 0x49bf10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x30], eax
jg 0x49bf24
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
cmp edx, eax
jle 0x49bf32
mov edx, eax
cmp ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
jge 0x49c03b
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x49c03b
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
sub eax, edx
mov dword [esp + 0x24], eax
jmp 0x49bf60
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
add edx, ebp
mov eax, dword [eax + edx*4]
mov ebp, eax
shr ebp, 0x18
imul ebp, esi
shr ebp, 8
mov edx, 0xff
sub edx, ebp
mov ebp, eax
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
imul eax, esi
imul ebp, esi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], eax
jmp 0x49bfb3
mov ebp, dword [esp + 0x40]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [edi + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, ebp
shr ecx, 8
mov ebp, ecx
and ebp, 0xffff00ff
and ecx, 0xff00ff
imul ebp, edx
imul ecx, edx
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
xor eax, ecx
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x49bfaf
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edx
jl 0x49bf5c
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jge 0x49c051
mov ecx, eax
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x64]
cmp eax, edx
mov dword [esp + 0x3c], edx
jl 0x49c065
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x34], eax
jg 0x49c079
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
cmp edx, eax
jle 0x49c087
mov edx, eax
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x38], edx
jge 0x49c19f
mov eax, dword [esp + 0x3c]
cmp eax, edx
jge 0x49c19b
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
sub eax, edx
mov edx, dword [esp + 0x68]
lea eax, [eax + edx + 1]
mov dword [esp + 0x24], eax
jmp 0x49c0c0
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
add edx, ebp
mov eax, dword [eax + edx*4]
mov ebp, eax
shr ebp, 0x18
imul ebp, esi
shr ebp, 8
mov edx, 0xff
sub edx, ebp
mov ebp, eax
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
imul eax, esi
imul ebp, esi
and eax, 0xff00ff00
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], eax
jmp 0x49c113
mov ebp, dword [esp + 0x48]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [edi + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x40], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, ebp
shr ecx, 8
mov ebp, ecx
and ebp, 0xffff00ff
and ecx, 0xff00ff
imul ebp, edx
imul ecx, edx
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
xor eax, ecx
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
inc ecx
cmp ecx, eax
mov dword [esp + 0x3c], ecx
jl 0x49c10f
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
jl 0x49c0b9
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
cmp ebp, ecx
mov dword [esp + 0x4c], ebp
jge 0x49c1af
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
cmp edx, ecx
jge 0x49c1bd
mov edx, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x74]
jle 0x49c1cb
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x64], eax
mov dword [esp + 0x38], ecx
jg 0x49c1d9
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
jge 0x49c2d2
cmp edx, eax
jge 0x49c2d2
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
jmp 0x49c210
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
jmp 0x49c210
mov ebp, dword [esp + 0x28]
nop
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x68]
mov ecx, dword [ebx + 0x10]
sub edx, ebp
add edx, eax
mov ecx, dword [ecx + edx*4]
mov edx, dword [edi + 4]
imul edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [edi + 0x10]
lea eax, [eax + edx*4]
mov edx, ecx
shr edx, 0x18
imul edx, esi
mov dword [esp + 0x48], eax
mov eax, dword [eax]
shr edx, 8
mov ebp, ecx
and ebp, 0xff00ff
mov edi, 0xff
imul ebp, esi
sub edi, edx
mov edx, eax
and eax, 0xff00ff
imul eax, edi
add eax, ebp
shr edx, 8
mov ebp, edx
shr ecx, 8
and ebp, 0xffff00ff
imul ebp, edi
and ecx, 0xff00ff
and edx, 0xff00ff
imul ecx, esi
imul edx, edi
mov edi, dword [esp + 0x10]
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
and ecx, 0xff00ff00
xor eax, edx
add eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x49c20b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x49c1fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
mov edx, eax
mov dword [esp + 0x4c], edx
jge 0x49c2ea
mov edx, ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
cmp ecx, eax
jl 0x49c2f8
mov eax, ecx
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
cmp ebp, ecx
jle 0x49c306
mov ebp, ecx
mov ecx, dword [esp + 0x78]
cmp dword [esp + 0x64], ecx
mov dword [esp + 0x38], ebp
jg 0x49c318
mov ecx, dword [esp + 0x64]
cmp edx, ebp
mov dword [esp + 0x30], ecx
jge 0x49c40b
cmp eax, ecx
jge 0x49c40b
mov dword [esp + 0x34], eax
jmp 0x49c336
mov edx, dword [esp + 0x4c]
mov eax, edx
mov dword [esp + 0x3c], eax
lea esp, [esp]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
add edx, eax
add edx, ecx
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + edx*4 + 4]
mov edx, dword [edi + 4]
imul edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [edi + 0x10]
lea eax, [eax + edx*4]
mov edx, ecx
shr edx, 0x18
imul edx, esi
mov dword [esp + 0x48], eax
mov eax, dword [eax]
shr edx, 8
mov ebp, ecx
and ebp, 0xff00ff
mov edi, 0xff
imul ebp, esi
sub edi, edx
mov edx, eax
and eax, 0xff00ff
imul eax, edi
add eax, ebp
shr edx, 8
mov ebp, edx
shr ecx, 8
and ebp, 0xffff00ff
imul ebp, edi
and ecx, 0xff00ff
and edx, 0xff00ff
imul ecx, esi
imul edx, edi
mov edi, dword [esp + 0x10]
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
and ecx, 0xff00ff00
xor eax, edx
add eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x49c340
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x49c332
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x68]
add edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
mov edx, ecx
imul eax, esi
and edx, 0xffff00ff
imul edx, esi
and ecx, 0xff00ff
imul ecx, esi
shr eax, 8
and eax, 0xff00ff
and edx, 0xff00ff
xor eax, edx
mov edx, dword [esp + 0x6c]
xor eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, edx
mov dword [esp + 0x4c], ecx
jge 0x49c466
mov ecx, edx
mov dword [esp + 0x4c], ecx
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
cmp esi, edx
jge 0x49c474
mov esi, edx
mov edx, dword [esp + 0x74]
mov ebp, esi
mov esi, dword [esp + 0x60]
cmp esi, edx
mov dword [esp + 0x50], ebp
jle 0x49c488
mov esi, edx
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x78]
cmp ebx, edx
mov dword [esp + 0x54], esi
jg 0x49c49a
mov edx, ebx
cmp ecx, esi
mov dword [esp + 0x58], edx
jge 0x49c4b3
cmp ebp, edx
jge 0x49c4b3
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.0049c6d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 0x1c