Function at 0x4c3d70
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59f460
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x34]
cmp eax, esi
je 0x4c410a
cmp dword [eax + 0x58], esi
jne 0x4c410a
mov eax, dword [eax + 0x9c]
cmp eax, esi
jne 0x4c3db4
mov dword [esp + 0x10], esi
jmp 0x4c3dbb
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x28], esi
jg 0x4c410a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x6c]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x18], ebp
je 0x4c410a
mov ecx, ebp
call fcn.0053f310
test eax, eax
je 0x4c410a
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
cmp eax, 0x100
je 0x4c3e0f
cmp eax, 0x104
je 0x4c3e0f
cmp eax, 0x102
je 0x4c3e0f
cmp eax, 0x106
jne 0x4c410a
mov ecx, edi
call fcn.004c3d00
mov ecx, ebp
mov ebx, eax
mov dword [esp + 0x20], esi
call fcn.0053f310
cmp eax, esi
mov dword [esp + 0x1c], eax
jle 0x4c4104
jmp 0x4c3e35
mov ebp, dword [esp + 0x18]
push esi
mov ecx, ebp
call fcn.0053f320
mov ecx, dword [esp + 0x64]
mov ebp, eax
push ecx
push ebx
lea edx, [ebp + 4]
mov ecx, edi
push edx
call fcn.004c3c80
test eax, eax
jne 0x4c3e66
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4c3e31
mov eax, dword [esp + 0x20]
jmp 0x4c410c
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], 1
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4c4104
mov ebx, dword [sym.imp.USER32.dll_GetCapture]
call ebx
test eax, eax
jne 0x4c4104
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4c4104
cmp dword [ebp], 0
je 0x4c4104
cmp word [ebp + 0xa], 0
je 0x4c40f2
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 0x9c]
mov edx, dword [ecx]
call dword [edx + 0xb0]
test eax, eax
je 0x4c3f92
push edi
push ebp
lea ecx, [esp + 0x30]
call fcn.004c4480
mov eax, dword [0x5f2228]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], eax
mov bl, 2
mov byte [esp + 0x5c], bl
call fcn.004c2220
mov edx, dword [eax]
lea ecx, [esp + 0x64]
push 0x23e3
push ecx
mov ecx, eax
call dword [edx + 8]
push eax
call fcn.004f7880
add esp, 4
lea edx, [ebp + 4]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push edx
push eax
call fcn.004c45f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x68], 3
call fcn.00568f1c
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], bl
call fcn.0056bf1d
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x14]
push edx
mov ecx, dword [eax + 0x9c]
call fcn.0058251f
lea ecx, [esp + 0x64]
mov byte [esp + 0x5c], 1
call fcn.0056bf1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 0
call fcn.0056bf1d
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004c44c0
mov ebx, dword [sym.imp.USER32.dll_GetCapture]
mov eax, dword [edi + 0x28]
push esi
inc eax
mov dword [esp + 0x68], 0
mov dword [edi + 0x28], eax
call dword [sym.imp.USER32.dll_SetCapture]
call ebx
cmp eax, esi
jne 0x4c409a
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [esp + 0x3c]
cmp eax, 0x100
je 0x4c4020
cmp eax, 0x104
je 0x4c4020
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0x3c]
cmp eax, 0x111
je 0x4c409a
cmp eax, 6
je 0x4c409a
cmp eax, 0x201
je 0x4c409a
cmp eax, 0x86
je 0x4c409a
cmp eax, 0x10
je 0x4c409a
cmp eax, 0x112
je 0x4c409a
jmp 0x4c4033
mov eax, dword [esp + 0x40]
cmp eax, 0x10
je 0x4c4033
cmp eax, 0x11
je 0x4c4033
cmp eax, 0x12
jne 0x4c403f
call ebx
cmp eax, esi
je 0x4c3fb2
jmp 0x4c409a
mov ecx, edi
call fcn.004c3d00
mov dword [esp + 0x24], eax
xor ebx, ebx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.0053f320
mov esi, eax
mov al, byte [ebp + 4]
mov dl, byte [esi + 4]
cmp dl, al
jne 0x4c4085
mov ax, word [esi + 6]
cmp ax, word [ebp + 6]
jne 0x4c4085
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
lea eax, [esi + 8]
push edx
push eax
mov ecx, edi
call fcn.004c3c80
test eax, eax
jne 0x4c40e6
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4c404c
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov esi, dword [esp + 0x10]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ebx, dword [edi + 0x28]
push esi
dec ebx
mov dword [edi + 0x28], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c40d7
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx]
call dword [edx + 0xb0]
test eax, eax
je 0x4c40d7
mov eax, dword [edi + 0x34]
push 0
mov ecx, dword [eax + 0x9c]
call fcn.00582536
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4c40f2
mov eax, 1
jmp 0x4c410c
mov dword [esp + 0x64], 1
mov ebp, esi
jmp 0x4c4096
mov ecx, dword [ebp]
push 0
push ecx
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x20]
jmp 0x4c410c
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4