Function at 0x1004a590
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2c54
call fcn.10092b20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c50], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0xffe
push eax
lea ecx, [esp + 0x1c62]
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
mov word [esp + 0x1c64], ax
call fcn.1008e320
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1466]
push eax
mov word [esp + 0x1468], dx
call fcn.1008e320
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004a601
push 0x800
lea ecx, [esp + 0x1c5c]
push ecx
sub eax, edx
push eax
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jne 0x1004a7f5
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1004a6b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Module32First
push esi
mov ebx, eax
call edi
push str.Module32Next
push esi
mov dword [esp + 0x1450], eax
call edi
xor edi, edi
mov dword [esp + 0x1c], eax
cmp ebx, edi
je 0x1004a6b5
mov esi, dword [esp + 0x1448]
cmp esi, edi
je 0x1004a6b5
cmp eax, edi
je 0x1004a6b5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004a6b5
lea edx, [esp + 0x1020]
push edx
push ebx
mov dword [esp + 0x1028], 0x428
call esi
test eax, eax
jne 0x1004a6cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c50]
xor ecx, esp
call fcn.10087a66
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1004a6e0
push 0x1fe
lea edx, [esp + 0x1a5e]
xor eax, eax
xor ecx, ecx
push edi
push edx
mov word [esp + 0x1454], ax
mov dword [esp + 0x1456], edi
mov word [esp + 0x1a64], cx
call fcn.1008e320
push 0x1fe
lea ecx, [esp + 0x186a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x1870], ax
call fcn.1008e320
push 0x1fe
lea eax, [esp + 0x1676]
xor edx, edx
push edi
push eax
mov word [esp + 0x167c], dx
call fcn.1008e320
push 0x100
lea ecx, [esp + 0x1680]
push ecx
push 0x100
lea edx, [esp + 0x1888]
push edx
push 0x100
lea eax, [esp + 0x1a90]
push eax
push 3
lea ecx, [esp + 0x1488]
push ecx
lea edx, [esp + 0x1284]
push edx
call fcn.10088431
add esp, 0x48
lea eax, [esp + 0x1240]
push str.INICRYPTO_
push eax
call fcn.10088651
add esp, 8
test eax, eax
je 0x1004a7c0
mov ecx, dword [esp + 0x14]
push edi
push edi
push 0x104
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x1254]
push edx
push edi
push edi
call esi
mov dword [esp + 0x10], edi
lea eax, [esp + 0x1020]
push eax
push ebx
call dword [esp + 0x24]
test eax, eax
jne 0x1004a6e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c50]
xor ecx, esp
call fcn.10087a66
mov esp, ebp
pop ebp
ret
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1004a6b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push esi
call edi
push str.GetModuleFileNameExW
push esi
mov ebx, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1004a6b5
test edi, edi
je 0x1004a6b5
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x1004a90e
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x1004a90e
jmp 0x1004a870
push 0x208
lea eax, [esp + 0x1454]
push 0
push eax
call fcn.1008e320
mov edx, dword [esp + esi*4 + 0x2c]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1454]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x1004a8bf
lea eax, [esp + 0x1450]
push str.inicrypto_
push eax
call fcn.10088651
add esp, 8
test eax, eax
jne 0x1004a8e4
mov ecx, dword [esp + 0x18]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x1004a870
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c50]
xor ecx, esp
call fcn.10087a66
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x104
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x1464]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x2c5c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10087a66
mov esp, ebp
pop ebp
ret