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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f4cb8
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 0x4821a4
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
call fcn.0040f2b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x481d90
push 0x80004003
call fcn.004e2fd8
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 0x481dae
push 0x52f680
push esi
push eax
call fcn.004e2fe6
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], esi
jle 0x482170
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
cmp dword [esp + 0x14], ebx
jne 0x481dd7
push 0x80004003
call fcn.004e2fd8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004604e0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3c], 1
cmp eax, ebx
jne 0x481dfd
push 0x80004003
call fcn.004e2fd8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.0040f210
mov ecx, dword [eax]
mov byte [esp + 0x3c], 2
cmp ecx, ebx
je 0x481e1d
call fcn.00406050
jmp 0x481e1f
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.00409570
cmp dword [esp + 0x10], ebx
jne 0x481e47
push 0x80004003
call fcn.004e2fd8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
call fcn.0040f3a0
mov ecx, dword [eax]
mov byte [esp + 0x3c], 5
cmp ecx, ebx
je 0x481e67
call fcn.00406050
jmp 0x481e69
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.00409570
mov eax, dword [esp + 0x44]
cmp dword [eax - 8], ebx
je 0x48212c
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push edi
push edx
call fcn.00482580
add esp, 0xc
test eax, eax
jne 0x48212c
mov eax, dword [str.BACKGROUNDIMAGE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x481edb
mov eax, dword [edi + 4]
lea edx, [edi + 0x54]
or al, 4
push edx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.004829d0
add esp, 8
jmp 0x48212c
mov ecx, dword [str.MINWIDTH]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x481f02
lea eax, [esp + 0x48]
lea ecx, [edi + 0x4c]
push eax
call fcn.004e2330
jmp 0x48212c
mov ecx, dword [str.MINHEIGHT]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x481f29
lea eax, [esp + 0x48]
lea ecx, [edi + 0x50]
push eax
call fcn.004e2330
jmp 0x48212c
mov ecx, dword [str.RESIZABLE]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x481f91
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, eax
je 0x481f7b
push str.TRUE
push eax
call ebp
add esp, 8
test eax, eax
jne 0x481f70
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 0x48212c
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 0x48212c
mov eax, dword [str.ONLOAD]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x481fb7
lea edx, [esp + 0x48]
lea ecx, [edi + 0x68]
push edx
call fcn.004e2330
jmp 0x48212c
mov eax, dword [str.ONSIZE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x481fdd
lea edx, [esp + 0x48]
lea ecx, [edi + 0x60]
push edx
call fcn.004e2330
jmp 0x48212c
mov eax, dword [str.ONCLOSE]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x482003
lea edx, [esp + 0x48]
lea ecx, [edi + 0x64]
push edx
call fcn.004e2330
jmp 0x48212c
mov eax, dword [str.HASCAPTION]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x482023
mov dword [edi + 0x74], 1
jmp 0x48212c
mov edx, dword [str.HASBORDER]
mov eax, dword [esp + 0x44]
push edx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x482044
mov dword [edi + 0x78], 1
jmp 0x48212c
mov ecx, dword [str.ONMOVIEBOXSHOW]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x48206b
lea eax, [esp + 0x48]
lea ecx, [edi + 0x70]
push eax
call fcn.004e2330
jmp 0x48212c
mov ecx, dword [str.SCRIPTFILE]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4820e7
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString_1
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.00482b50
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [edi + 0x5c]
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 0x48212c
mov ecx, dword [str.TITLEBAR]
mov edx, dword [esp + 0x44]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x48212c
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, eax
je 0x482124
push str.TRUE
push eax
call ebp
add esp, 8
test eax, eax
je 0x48219d
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 0x48215a
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 0x481dc7
pop ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
cmp eax, ebx
pop esi
je 0x482187
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 0x482129
mov ecx, dword [esp + 0x2c]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret