Function at 0x410c90
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x124
mov eax, dword [0x423768]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0x4002
mov dword [esp + 0x24], ebx
jne 0x410ef9
mov edx, dword [esp + 0x140]
cmp edx, ebx
je 0x410d6f
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
lea esi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, esi
push 8
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RSAPPMGR.DLL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
cmp esi, ebx
pop edi
je 0x410da6
lea eax, [esp + 0x28]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push eax
jmp 0x410d89
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x410da6
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0x41a840
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x410da8
push str._GetRSModule_0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
jmp 0x410da8
xor esi, esi
cmp esi, ebx
mov dword [0x423768], esi
je 0x410e7d
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x410e7d
call eax
mov esi, eax
cmp esi, ebx
je 0x410e7d
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ebx
push 1
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
jne 0x410dee
push str.Create_IRSMemory_instance_failed.
jmp 0x410e77
mov edx, dword [ecx]
push 0x423780
push 1
call dword [edx + 4]
cmp dword [0x423780], ebx
jne 0x410e09
push str.Query_IRSMemory_version_failed.
jmp 0x410e77
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push ebx
push 2
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [esp + 8]
cmp ecx, ebx
jne 0x410e27
push str.Create_IRSAppMgr_instance_failed.
jmp 0x410e77
mov edx, dword [ecx]
push 0x423784
push 1
call dword [edx + 4]
mov ecx, dword [0x423784]
cmp ecx, ebx
jne 0x410e44
push str.Query_IRSAppMgr_version_failed.
jmp 0x410e77
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ecx, dword [0x423784]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x134]
mov edx, dword [ecx]
push ebx
push eax
push 0x423788
call dword [edx + 0x10]
mov ecx, dword [0x423788]
cmp ecx, ebx
jne 0x410ed9
push str.AppEnv_not_created.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x410e90
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [0x423784], ebx
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x410ea3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [0x423780], ebx
mov esi, dword [0x423768]
cmp esi, ebx
je 0x410ece
mov eax, dword [esi]
cmp eax, ebx
je 0x410ebf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push esi
call fcn.00414922
add esp, 4
mov dword [0x423768], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
mov edx, dword [0x423780]
mov dword [0x423770], 1
mov dword [0x423774], edx
mov eax, dword [ecx]
push 0x423770
call dword [eax + 0x20]
mov eax, dword [esp + 0x134]
cmp eax, ebx
je 0x410f0c
mov ecx, dword [0x423784]
mov dword [eax], ecx
mov eax, dword [esp + 0x138]
cmp eax, ebx
je 0x410f1f
mov edx, dword [0x423788]
mov dword [eax], edx
mov eax, dword [esp + 0x13c]
cmp eax, ebx
je 0x410f32
mov ecx, dword [0x423780]
mov dword [eax], ecx
pop esi
mov eax, 1
pop ebx
add esp, 0x124
ret