Function at 0x401570
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
lea eax, [esp + 0x94]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4015cf
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x130]
pop edi
pop esi
mov dword [ecx], ebx
mov dword [edx], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x134]
cmp eax, 2
jne 0x40169c
mov eax, dword [esp + 0x9c]
mov dword [edi], 2
cmp eax, 4
jae 0x401611
mov eax, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov eax, 2
pop ebx
add esp, 0x11c
ret
jne 0x4016a2
mov ebp, dword [esp + 0x130]
push 0x420220
mov dword [ebp], 0x200
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x401651
push 0x420200
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x11c
ret
push 0x4201ec
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
jne 0x401685
push 0x4201c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x11c
ret
pop edi
mov dword [ebp], 0x300
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x11c
ret
mov dword [edi], 1
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4201b8
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4016d7
mov ecx, dword [esp + 0x130]
push ebx
mov dword [ecx], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x11c
ret
push 0x4201a4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x401714
mov edx, dword [esp + 0x130]
push esi
mov dword [edx], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x420184
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x11c
ret
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebx
call eax
test eax, eax
jge 0x40174e
mov edx, dword [esp + 0x130]
push esi
mov dword [edx], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x42016c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x11c
ret
mov ebx, dword [esp + 0x130]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov dword [ebx], 0x100
mov ecx, dword [eax]
push edx
push 0x41e360
push eax
call dword [ecx]
test eax, eax
jge 0x40179e
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x420154
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 0x420220
mov dword [ebx], 0x200
call ebp
mov edi, eax
test edi, edi
jne 0x4017e7
push 0x420200
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x11c
ret
push 0x4201ec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401828
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 0x4201c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x11c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov dword [ebx], 0x300
call ebp
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x2c]
push 8
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], 0x6c
mov dword [esp + 0x34], 1
mov dword [esp + 0x98], 0x200
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x10]
jge 0x40189f
mov edx, dword [eax]
push eax
call dword [edx + 8]
push esi
call ebp
push 0x420138
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0x11c
ret
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push 0
push edx
lea edx, [esp + 0x34]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x4018e3
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call ebp
push 0x42011c
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x41e340
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x401917
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
mov dword [ebx], 0x500
push edx
mov ecx, dword [eax]
push 0x41e330
push eax
call dword [ecx]
test eax, eax
jge 0x401951
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x14]
mov dword [ebx], 0x600
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x1c]
push edx
push 0x41e280
push 1
push 0
push 0x41e290
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4019b6
push 0x4200f8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x1c]
mov dword [ebx], 0x601
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4200e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4019ef
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x11
pop ebx
add esp, 0x11c
ret
push 0
lea edx, [esp + 0x28]
push 0x41e350
push edx
push 0
call eax
test eax, eax
jge 0x401a16
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x12
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x24]
mov dword [ebx], 0x700
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret