Function at 0x4cda60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x320
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x54], eax
call fcn.0044c090
mov byte [esp + 7], al
test esi, esi
jne 0x4cda95
mov dword [esp + 0x10], 0
xor eax, eax
jmp 0x4cda9f
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
lea esi, [esp + 0x50]
mov dword [esi], eax
lea eax, [esp + 0x54]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 7]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x10]
push eax
call fcn.004649a0
add esp, 4
push esi
call fcn.004649a0
add esp, 4
lea eax, [ebp + 0xc]
push eax
call fcn.004649a0
add esp, 4
xor esi, esi
dec esi
lea ebx, [esp + 0x4c]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
inc ecx
mov edi, dword [sym.imp.USER32.dll_GetGuiResources]
push ecx
push eax
call edi
mov dword [ebx], eax
lea ebx, [esp + 0x20]
mov dword [ebx], esi
call fcn.004cdf30
mov dword [ebx], eax
lea eax, [esp + 0x48]
mov dword [eax], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push eax
call edi
mov dword [ebx], eax
lea ebx, [esp + 0xbc]
mov dword [ebx], esi
mov eax, 0xfffffffe
push 0
push eax
call edi
mov dword [ebx], eax
lea eax, [esp + 0xb8]
mov dword [eax], esi
mov esi, eax
xor eax, eax
inc eax
push eax
mov eax, 0xfffffffe
push eax
call edi
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x4c]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x48]
push eax
call fcn.004649a0
add esp, 4
push ebx
call fcn.004649a0
add esp, 4
push esi
call fcn.004649a0
add esp, 4
lea esi, [esp + 0x70]
xor eax, eax
dec eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, esi
mov edx, eax
call fcn.004cdf80
mov al, byte [esi]
mov byte [esp + 6], al
mov dword [esp + 0x14], 0
mov edx, 0
mov esi, 0
mov ebx, 0
mov edi, 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
test al, al
mov eax, 0
je 0x4cdc44
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x1c], edx
mov edx, esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x2c]
mov ecx, edi
lea edi, [esp + 0x44]
mov dword [edi], eax
lea eax, [esp + 0x40]
mov edi, dword [esp + 0x14]
mov dword [eax], edi
lea eax, [esp + 0x3c]
mov dword [eax], edx
lea eax, [esp + 0x38]
mov dword [eax], esi
lea esi, [esp + 0xb4]
mov dword [esi], ebx
lea edi, [esp + 0xb0]
mov dword [edi], ecx
lea ebx, [esp + 0xac]
mov eax, dword [esp + 0xc]
mov dword [ebx], eax
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea eax, [esp + 6]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x44]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x40]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x3c]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x38]
push eax
call fcn.004649a0
add esp, 4
push esi
call fcn.004649a0
add esp, 4
push edi
call fcn.004649a0
add esp, 4
push ebx
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x34]
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x30]
push eax
call fcn.004649a0
add esp, 4
mov ecx, dword [esp + 0x20]
call fcn.004cead0
lea esi, [esp + 0xc0]
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x1c], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ecx, esi
call fcn.004ceae0
mov ecx, esi
call fcn.004ceb10
mov ecx, esi
call fcn.004ceb30
lea edi, [esp + 0xa8]
mov dword [edi], 0xffffffff
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [edi], eax
push edi
call fcn.004649a0
add esp, 4
lea eax, [esp + 0xa4]
mov dword [eax], ebx
lea ecx, [ebp + 8]
push ebx
push dword [ebp + 0xc]
push eax
push ebx
push ecx
push dword [edi]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
push dword [edi]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
jne 0x4cdf24
mov eax, dword [esp + 0x50]
mov ecx, eax
neg ecx
cmovl ecx, eax
imul ecx, dword [esp + 0x10]
cmp ecx, 0x65
jl 0x4cddb1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004ceb50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc], eax
call fcn.004cebc0
mov edi, eax
xor esi, esi
lea eax, [esp + 0x6c]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x28]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x68]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x64]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x60]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x24]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x5c]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea eax, [esp + 0x58]
mov dword [eax], esi
push eax
call fcn.004649a0
add esp, 4
lea ebx, [esp + 0xf0]
push 0x22c
push esi
push ebx
call fcn.0048d770
add esp, 0xc
mov ecx, edi
mov edx, ebx
call fcn.004cebe0
mov dword [esp + 8], 0xffffffff
push dword [esp + 0xf8]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 8], esi
lea ecx, [esp + 8]
push eax
call fcn.0046d4a0
mov eax, dword [esp + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x4cdebf
mov eax, dword [esp + 8]
inc eax
cmp eax, 2
jb 0x4cdeab
call fcn.0046e410
push dword [esp + 8]
call fcn.00470b40
add esp, 4
lea eax, [esp + 0xf0]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4cde5b
jmp 0x4cdf1a
push 0
push eax
mov esi, dword [sym.imp.USER32.dll_GetGuiResources]
call esi
mov ebx, eax
push 1
push dword [esp + 0xc]
call esi
xor esi, esi
inc dword [esp + 0x6c]
add dword [esp + 0x64], eax
add dword [esp + 0x68], ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
cmovl ecx, ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x108], ecx
jne 0x4cde90
inc dword [esp + 0x60]
add dword [esp + 0x58], eax
add dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
cmovl eax, ebx
mov dword [esp + 0x24], eax
jmp 0x4cde90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
int3
int3