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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [edi + 0x24], 0
mov dword [edi + 0x7c], 0xffffffff
call fcn.005de2f0
test al, al
je 0x6d1fe7
mov ecx, ebx
call fcn.005de430
sub eax, 0xbfb302f
je 0x6d1989
dec eax
jne 0x6d1fd1
xor eax, eax
mov ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.005de470
test al, al
je 0x6d18e0
mov ecx, ebx
call fcn.005de4f0
sub eax, 0x19
je 0x6d18c1
dec eax
jne 0x6d18ce
lea eax, [ebp - 0xc]
push 4
push eax
jmp 0x6d18c7
lea ecx, [ebp - 8]
push 4
push ecx
mov ecx, ebx
call fcn.005de5b0
mov ecx, ebx
call fcn.005de4a0
mov ecx, ebx
call fcn.005de470
test al, al
jne 0x6d18aa
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0x8c]
lea esi, [edi + 0x80]
cmp eax, ecx
jl 0x6d191e
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
add ecx, 4
cmp eax, ecx
jg 0x6d190c
mov eax, ecx
test eax, eax
jg 0x6d1912
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x6d1930
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x98]
mov eax, dword [edi + 0x9c]
lea esi, [edi + 0x90]
cmp eax, ecx
jl 0x6d1972
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
add ecx, 4
cmp eax, ecx
jg 0x6d195c
mov eax, ecx
test eax, eax
jg 0x6d1962
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x6d1fd1
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4], ecx
jmp 0x6d1fd1
mov ecx, ebx
call fcn.005de470
test al, al
je 0x6d1fd1
mov ecx, ebx
call fcn.005de4f0
dec eax
cmp eax, 0x17
ja case.default.0x6d19a9
jmp dword [eax*4 + 0x6d1ff8]
mov eax, 4
call fcn.0078c8d0
mov edi, esp
push 4
push edi
mov ecx, ebx
call fcn.005de5b0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
cmp eax, 0xffffffff
je case.default.0x6d19a9
push eax
call fcn.0045c0b0
add esp, 4
test eax, eax
je case.default.0x6d19a9
lea esi, [eax + 0x14]
mov eax, dword [0x829478]
push 1
push eax
push 4
push esi
call fcn.0045cc80
push 1
push 4
push edi
push esi
call fcn.0045cb20
push 0
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb case.default.0x6d19a9
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x6d1a57
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d1a6a
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d1a84
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x6d1a98
sub eax, ecx
jmp 0x6d1aa0
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d1ac0
mov edx, ecx
or edx, eax
je 0x6d1ac0
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe case.default.0x6d19a9
mov cl, byte [0x81c6fc]
test cl, cl
jne case.default.0x6d19a9
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x6d1b47
mov dword [ebp - 8], 0x820e44
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x6d1b32
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6d1b32
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6d1b32
test esi, esi
jle 0x6d1b32
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d1b2c
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d1b24
mov edx, dword [edx + 4]
dec ebx
jne 0x6d1b17
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add edx, 4
dec ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
jne 0x6d1af5
mov ebx, dword [ebp + 8]
cmp eax, dword [0x8294d8]
je 0x6d1b5a
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x6d1c53
mov eax, dword [0x829464]
cmp eax, edi
je 0x6d1bde
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d1bd3
mov edx, dword [0x829488]
push edi
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6d1bb9
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d1bd3
cmp dword [esi], 0x29874362
je 0x6d1bde
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x6d1c53
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d1c48
mov ecx, dword [0x829488]
push edi
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6d1c2e
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d1c48
cmp dword [esi], 0xbad0bad
je 0x6d1c53
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
jmp case.default.0x6d19a9
mov eax, 4
call fcn.0078c8d0
mov edi, esp
push 4
push edi
mov ecx, ebx
call fcn.005de5b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je case.default.0x6d19a9
push eax
call fcn.0045c0b0
add esp, 4
test eax, eax
je case.default.0x6d19a9
mov ecx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push ecx
push 4
push esi
call fcn.0045cc80
push 1
push 4
push edi
push esi
call fcn.0045cb20
push 0
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb case.default.0x6d19a9
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x6d1d07
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d1d1a
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d1d34
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x6d1d48
sub eax, ecx
jmp 0x6d1d50
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d1d70
mov edx, eax
or edx, ecx
je 0x6d1d70
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe case.default.0x6d19a9
mov cl, byte [0x81c6fc]
test cl, cl
jne case.default.0x6d19a9
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x6d1df4
mov dword [ebp - 8], 0x820e44
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x6d1de2
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6d1de2
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6d1de2
test esi, esi
jle 0x6d1de2
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d1ddc
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d1dd4
mov edx, dword [edx + 4]
dec ebx
jne 0x6d1dc7
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add edx, 4
dec ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
jne 0x6d1da5
cmp eax, dword [0x8294d8]
je 0x6d1e07
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x6d1f00
mov eax, dword [0x829464]
cmp eax, edi
je 0x6d1e8b
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d1e80
mov edx, dword [0x829488]
push edi
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6d1e66
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d1e80
cmp dword [esi], 0x29874362
je 0x6d1e8b
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x6d1f00
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d1ef5
mov ecx, dword [0x829488]
push edi
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6d1edb
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d1ef5
cmp dword [esi], 0xbad0bad
je 0x6d1f00
inc dword [0x8294f0]
call fcn.0045dca0
mov ebx, dword [ebp + 8]
mov byte [0x81c6fc], 0
jmp case.default.0x6d19a9
push 4
add edi, 0x20
jmp 0x6d1fb0
push 4
add edi, 0x28
jmp 0x6d1fb0
push 4
add edi, 0x2c
jmp 0x6d1fb0
push 4
add edi, 0x30
jmp 0x6d1fb0
push 4
add edi, 0x34
jmp 0x6d1fb0
push 4
add edi, 0x38
jmp 0x6d1fb0
push 4
add edi, 0x3c
jmp 0x6d1fb0
push 4
add edi, 0x40
jmp 0x6d1fb0
push 4
add edi, 0x44
jmp 0x6d1fb0
push 4
add edi, 0x48
jmp 0x6d1fb0
push 4
add edi, 0x4c
jmp 0x6d1fb0
push 4
add edi, 0x50
jmp 0x6d1fb0
push 4
add edi, 0x54
jmp 0x6d1fb0
push 4
add edi, 0x58
jmp 0x6d1fb0
push 4
add edi, 0x5c
jmp 0x6d1fb0
push 4
add edi, 0x60
jmp 0x6d1fb0
push 4
add edi, 0x64
jmp 0x6d1fb0
push 4
add edi, 0x68
jmp 0x6d1fb0
push 4
add edi, 0x6c
jmp 0x6d1fb0
push 4
add edi, 0x70
jmp 0x6d1fb0
push 4
add edi, 0x74
jmp 0x6d1fb0
push 4
add edi, 0x78
push edi
mov ecx, ebx
call fcn.005de5b0
mov ecx, ebx
call fcn.005de4a0
mov ecx, ebx
call fcn.005de470
mov edi, dword [ebp - 4]
test al, al
jne 0x6d1998
mov ecx, ebx
call fcn.005de3e0
mov ecx, ebx
call fcn.005de2f0
test al, al
jne 0x6d187e
lea esp, [ebp - 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4