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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57b478
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push edi
mov edi, dword [esp + 0x3c]
xor ebx, ebx
cmp edi, ebx
je 0x4c313d
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
call fcn.00435f80
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x4c2d20
push 0x80004003
call fcn.00565a92
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push esi
push edx
push eax
mov esi, eax
call dword [ecx + 0x2c]
cmp eax, ebx
jge 0x4c2d3e
push 0x5d1858
push esi
push eax
call fcn.00565aa0
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], esi
jle 0x4c3109
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
cmp dword [esp + 0x14], ebx
jne 0x4c2d67
push 0x80004003
call fcn.00565a92
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004924a0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3c], 1
cmp eax, ebx
jne 0x4c2d8d
push 0x80004003
call fcn.00565a92
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00435ee0
mov ecx, dword [eax]
mov byte [esp + 0x3c], 2
cmp ecx, ebx
je 0x4c2dad
call fcn.00412aa0
jmp 0x4c2daf
xor eax, eax
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.00412980
cmp dword [esp + 0x10], ebx
jne 0x4c2dd7
push 0x80004003
call fcn.00565a92
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
call fcn.00436070
mov ecx, dword [eax]
mov byte [esp + 0x3c], 5
cmp ecx, ebx
je 0x4c2df7
call fcn.00412aa0
jmp 0x4c2df9
xor eax, eax
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 7
call fcn.00412980
mov eax, dword [esp + 0x44]
cmp dword [eax - 8], ebx
je 0x4c30c5
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push edi
push edx
call fcn.004c3580
add esp, 0xc
test eax, eax
jne 0x4c30c5
mov eax, dword [str.BACKGROUNDIMAGE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4c2e6b
mov eax, dword [edi + 4]
lea edx, [edi + 0x5c]
or al, 4
push edx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.004c39d0
add esp, 8
jmp 0x4c30c5
mov ecx, dword [str.MINWIDTH]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4c2e92
lea eax, [esp + 0x48]
lea ecx, [edi + 0x54]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4c30c5
mov ecx, dword [str.MINHEIGHT]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4c2eb9
lea eax, [esp + 0x48]
lea ecx, [edi + 0x58]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4c30c5
mov ecx, dword [str.RESIZABLE]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4c2f21
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, eax
je 0x4c2f0b
push str.TRUE
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4c2f00
mov ecx, dword [edi + 4]
mov eax, 1
neg eax
sbb eax, eax
and eax, 0x10
or ecx, eax
mov dword [edi + 4], ecx
jmp 0x4c30c5
push str.FALSE
push esi
call ebp
add esp, 8
mov ecx, dword [edi + 4]
xor eax, eax
neg eax
sbb eax, eax
and eax, 0x10
or ecx, eax
mov dword [edi + 4], ecx
jmp 0x4c30c5
mov eax, dword [str.ONLOAD]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4c2f47
lea edx, [esp + 0x48]
lea ecx, [edi + 0x78]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4c30c5
mov eax, dword [str.ONSIZE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4c2f6d
lea edx, [esp + 0x48]
lea ecx, [edi + 0x70]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4c30c5
mov eax, dword [str.ONCLOSE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4c2f93
lea edx, [esp + 0x48]
lea ecx, [edi + 0x74]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4c30c5
mov eax, dword [str.HASCAPTION]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4c2fb6
mov dword [edi + 0x84], 1
jmp 0x4c30c5
mov edx, dword [str.HASBORDER]
mov eax, dword [esp + 0x44]
push edx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4c2fda
mov dword [edi + 0x88], 1
jmp 0x4c30c5
mov ecx, dword [str.ONMOVIEBOXSHOW]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4c3004
lea eax, [esp + 0x48]
lea ecx, [edi + 0x80]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4c30c5
mov ecx, dword [str.SCRIPTFILE]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4c3080
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
call fcn.00564cce
push 0x3b
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 8
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.004c3b50
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [edi + 0x6c]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::CString
jmp 0x4c30c5
mov ecx, dword [str.TITLEBAR]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4c30c5
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, eax
je 0x4c30bd
push str.TRUE
push eax
call ebp
add esp, 8
test eax, eax
je 0x4c3136
push str.FALSE
push esi
call ebp
add esp, 8
mov eax, dword [edi + 4]
and al, 0xfe
mov dword [edi + 4], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3c], bl
cmp eax, ebx
je 0x4c30f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
jl 0x4c2d57
pop ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
cmp eax, ebx
pop esi
je 0x4c3120
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [edi + 4]
or al, 1
jmp 0x4c30c2
mov ecx, dword [esp + 0x2c]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret