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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x565078
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 0x4badbd
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
call fcn.00431350
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x4ba9a0
push 0x80004003
call fcn.005505fa
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 0x4ba9be
push 0x5b7510
push esi
push eax
call fcn.00550608
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], esi
jle 0x4bad89
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
cmp dword [esp + 0x14], ebx
jne 0x4ba9e7
push 0x80004003
call fcn.005505fa
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0048af70
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3c], 1
cmp eax, ebx
jne 0x4baa0d
push 0x80004003
call fcn.005505fa
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004312b0
mov ecx, dword [eax]
mov byte [esp + 0x3c], 2
cmp ecx, ebx
je 0x4baa2d
call fcn.004127c0
jmp 0x4baa2f
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.004126a0
cmp dword [esp + 0x10], ebx
jne 0x4baa57
push 0x80004003
call fcn.005505fa
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
call fcn.00431440
mov ecx, dword [eax]
mov byte [esp + 0x3c], 5
cmp ecx, ebx
je 0x4baa77
call fcn.004127c0
jmp 0x4baa79
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.004126a0
mov eax, dword [esp + 0x44]
cmp dword [eax - 8], ebx
je 0x4bad45
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push edi
push edx
call fcn.004bb200
add esp, 0xc
test eax, eax
jne 0x4bad45
mov eax, dword [str.BACKGROUNDIMAGE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4baaeb
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.004bb650
add esp, 8
jmp 0x4bad45
mov ecx, dword [str.MINWIDTH]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4bab12
lea eax, [esp + 0x48]
lea ecx, [edi + 0x54]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4bad45
mov ecx, dword [str.MINHEIGHT]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4bab39
lea eax, [esp + 0x48]
lea ecx, [edi + 0x58]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4bad45
mov ecx, dword [str.RESIZABLE]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4baba1
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, eax
je 0x4bab8b
push str.TRUE
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4bab80
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 0x4bad45
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 0x4bad45
mov eax, dword [str.ONLOAD]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4babc7
lea edx, [esp + 0x48]
lea ecx, [edi + 0x78]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4bad45
mov eax, dword [str.ONSIZE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4babed
lea edx, [esp + 0x48]
lea ecx, [edi + 0x70]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4bad45
mov eax, dword [str.ONCLOSE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4bac13
lea edx, [esp + 0x48]
lea ecx, [edi + 0x74]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4bad45
mov eax, dword [str.HASCAPTION]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4bac36
mov dword [edi + 0x84], 1
jmp 0x4bad45
mov edx, dword [str.HASBORDER]
mov eax, dword [esp + 0x44]
push edx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4bac5a
mov dword [edi + 0x88], 1
jmp 0x4bad45
mov ecx, dword [str.ONMOVIEBOXSHOW]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4bac84
lea eax, [esp + 0x48]
lea ecx, [edi + 0x80]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4bad45
mov ecx, dword [str.SCRIPTFILE]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4bad00
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
call fcn.0054f83e
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.004bb7d0
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 0x4bad45
mov ecx, dword [str.TITLEBAR]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4bad45
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, eax
je 0x4bad3d
push str.TRUE
push eax
call ebp
add esp, 8
test eax, eax
je 0x4badb6
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 0x4bad73
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 0x4ba9d7
pop ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
cmp eax, ebx
pop esi
je 0x4bada0
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 0x4bad42
mov ecx, dword [esp + 0x2c]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret