Function at 0x4afc10
Capabilities:
Create thread
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x564378
push eax
mov eax, dword [0x5cfd80]
mov dword fs:[0], esp
sub esp, 0x130
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4b070c
mov ebp, dword [esp + 0x150]
xor esi, esi
test ebp, ebp
jne 0x4afc52
mov eax, dword [0x5cfd7c]
mov esi, dword [eax]
jmp 0x4afc83
lea ebx, [eax - 1]
xor edi, edi
test ebx, ebx
jl 0x4afc83
mov ecx, dword [0x5cfd7c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x4afc7e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4afc83
inc edi
cmp edi, ebx
jle 0x4afc5b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, 0x10
jne 0x4b070c
xor edi, edi
cmp esi, edi
je 0x4b070c
mov eax, dword [0x5cfedc]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x18], ecx
je 0x4afccf
push 0x5cfedc
lea ecx, [esp + 0x1c]
call fcn.0048c000
cmp eax, edi
jge 0x4afccb
cmp eax, 0x80004002
je 0x4afccb
push eax
call fcn.005505fa
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov dword [esp + 0x148], edi
je 0x4afcdf
mov edx, dword [ecx]
call dword [edx + 0x40]
push 0x5cfedc
lea ecx, [esp + 0x1c]
mov dword [0x5cfedc], esi
call fcn.0048c000
cmp eax, edi
jge 0x4afd04
cmp eax, 0x80004002
je 0x4afd04
push eax
call fcn.005505fa
cmp dword [esp + 0x18], edi
je 0x4b070c
cmp dword [0x5cfd5c], edi
jne 0x4aff26
push str.LoadCurrentTheme
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push edi
push eax
mov byte [esp + 0x150], 1
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
push str.PLopen
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x5cfd64]
lea edx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x154], 2
call fcn.0054f83e
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 3
call fcn.00431ac0
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x150], 2
call dword [edx + 0x54]
push str.PLcycle
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x5cfd58]
lea edx, [esp + 0x28]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x154], 4
call fcn.0054f83e
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 5
call fcn.00431ac0
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x150], 4
call dword [edx + 0x64]
push str.PLmode
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x5cfd60]
mov bl, 6
cmp eax, 1
mov byte [esp + 0x148], bl
jne 0x4afe3f
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x5b5ca0
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x154], 7
call fcn.0054f83e
mov byte [esp + 0x150], 8
jmp 0x4afea7
push ecx
cmp eax, 2
mov ecx, esp
jne 0x4afe78
mov dword [esp + 0x18], esp
push 0x5b6658
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x154], 9
call fcn.0054f83e
mov byte [esp + 0x150], 0xa
jmp 0x4afea7
mov dword [esp + 0x18], esp
push 0x5b53fc
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x154], 0xb
call fcn.0054f83e
mov byte [esp + 0x150], 0xc
lea ecx, [esp + 0x20]
call fcn.00431ac0
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x150], bl
call dword [edx + 0x5c]
push 0x5c05dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x150], 0xd
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
push str.LoadCurrentTheme_OpenTheme
lea ecx, [esp + 0x20]
mov dword [0x5cfd5c], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
push edi
push ecx
mov byte [esp + 0x150], 0xe
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
cmp ecx, edi
jne 0x4aff77
push 0x80004003
call fcn.005505fa
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
call dword [edx + 0x3c]
push str.LoadCurrentTheme_OpenTheme_Over
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
push 1
push eax
mov byte [esp + 0x150], 0xf
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x5cfd6c]
push 0x5cabc0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
test eax, eax
je 0x4b01cf
push 0x5cfd6c
lea ecx, [esp + 0x14]
call fcn.0054f83e
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0x10
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [esp + 0x14]
push 0x57a484
push eax
mov byte [esp + 0x150], 0x11
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b01ad
push 0x5c057c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
xor edi, edi
lea ecx, [esp + 0x1c]
push edi
push ecx
mov byte [esp + 0x150], 0x12
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0x11
call sub.MFC42.DLL_CString::CString
push edi
push edi
push edi
push 0x4afbb0
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call ebp
push 0x5c0554
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x1c]
push 1
push edx
mov byte [esp + 0x150], 0x13
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0x11
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x24], edi
mov bl, 0x14
push 0x5b86a4
mov byte [esp + 0x14c], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4b00e8
push 0x5b86a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov edi, 1
test esi, esi
je 0x4b015f
push 0x5bb298
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4b0105
test edi, edi
je 0x4b015f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4b015f
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], 0x15
push ecx
push 0x5bb288
call eax
test eax, eax
jge 0x4b013c
mov eax, dword [esp + 0x28]
mov byte [esp + 0x148], bl
test eax, eax
je 0x4b015f
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x4b015f
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
push 0x5b5ca8
mov ecx, dword [eax]
push eax
call dword [ecx]
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], bl
call fcn.0046ca80
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b019b
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x24]
push 0x5b5ca0
push str.DAILY.VASTSTORM_POSTERSHOW
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 0x24]
push 0x5b5ca0
push str.DAILY.VASTSTORM_USED
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x148], 0x11
je 0x4b01ad
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [str.StormPlayer_Box_641AB5BD_C49D_4992_A84B_AA0F4BBFD336]
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x4b0545
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4b0203
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebp
test edi, edi
je 0x4b0545
mov ecx, dword [0x5cfedc]
test ecx, ecx
je 0x4b02aa
mov edx, dword [ecx]
push 0
call dword [edx + 0x1c]
xor ecx, ecx
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4b0254
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004575e0
test eax, eax
jge 0x4b0250
cmp eax, 0x80004002
je 0x4b0250
push eax
call fcn.005505fa
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov byte [esp + 0x148], 0x16
je 0x4b02a2
mov edx, dword [ecx]
call dword [edx + 0x60]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x148], 0
call fcn.0046ca80
test esi, esi
je 0x4b02aa
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4b02aa
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x5cfec8]
sub ebx, ecx
add ebx, eax
jmp 0x4b02b0
mov byte [esp + 0x148], 0
mov ebx, dword [0x5cfed0]
mov eax, dword [0x5cfd6c]
mov edi, dword [0x5cfecc]
push 0x5cabc0
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4b04a3
mov esi, dword [0x5cfd6c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
mov dword [esp + 0x14], ecx
lea edx, [ecx + esi - 1]
cmp edx, esi
je 0x4b030b
mov al, byte [edx]
cmp al, 0x2e
jne 0x4b0302
mov ebp, edx
sub ebp, esi
jmp 0x4b0306
cmp al, 0x5c
je 0x4b030b
dec edx
cmp edx, esi
jne 0x4b02f6
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, esi
stosb byte es:[edi], al
je 0x4b03bf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b03bf
sub ebp, edx
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
lea esi, [esi + ebp - 1]
test esi, esi
mov dword [esp + 0x1c], esi
jl 0x4b0352
lea eax, [esp + 0x1c]
mov eax, dword [eax]
inc edx
push eax
push edx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov edi, 0x5c054c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5baed8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5cfd7c]
mov esi, dword [eax]
test esi, esi
je 0x4b0545
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
push 0x5c0530
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x17
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push 0
push edx
mov byte [esp + 0x150], 0x18
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 0x17
call sub.MFC42.DLL_CString::CString
push 0x5c0524
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x4b044a
cmp dword [0x5cfaac], 1
jne 0x4b044a
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push ebx
push 0x5c00f8
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x4b045c
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x40]
push ebx
push ecx
mov ecx, esi
call dword [edx + 0x4c]
push 0x5c0504
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push 1
push edx
mov byte [esp + 0x150], 0x19
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 0x17
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x148], 0
lea ecx, [esp + 0x1c]
jmp 0x4b0540
mov eax, dword [0x5cfd7c]
mov esi, dword [eax]
test esi, esi
je 0x4b0545
push 0x5c0530
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esp + 0x150], 0x1a
call fcn.0044e5c0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
cmp dword [0x5cfaac], 1
jne 0x4b0501
mov edx, dword [esi]
push edi
push ebx
push str.MovieBox_deep
mov ecx, esi
call dword [edx + 0x4c]
jmp 0x4b050f
mov eax, dword [esi]
push edi
push ebx
push str.default.bfsk
mov ecx, esi
call dword [eax + 0x4c]
push 0x5c0504
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
push 1
push ecx
mov byte [esp + 0x150], 0x1b
call fcn.0044e5c0
add esp, 8
mov byte [esp + 0x148], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x5cfedc]
xor edi, edi
cmp ecx, edi
je 0x4b05bf
mov edx, dword [ecx]
push edi
call dword [edx + 0x1c]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x4b0588
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004575e0
cmp eax, edi
jge 0x4b0584
cmp eax, 0x80004002
je 0x4b0584
push eax
call fcn.005505fa
mov ecx, dword [esp + 0x10]
cmp ecx, edi
mov byte [esp + 0x148], 0x1c
je 0x4b05b7
mov edx, dword [ecx]
call dword [edx + 0x60]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
mov byte [esp + 0x148], 0
je 0x4b05b1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], esi
jmp 0x4b05c3
mov byte [esp + 0x148], 0
mov dword [esp + 0x10], edi
mov edx, dword [0x5d2a80]
mov ecx, 0x5d2a80
mov dword [esp + 0x14], ecx
call dword [edx + 4]
mov eax, dword [0x5cb0c0]
mov bl, 0x1d
cmp eax, edi
mov byte [esp + 0x148], bl
jne 0x4b06bc
cmp dword [0x5cb0bc], edi
jne 0x4b06bc
push 0x1044
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
mov byte [esp + 0x148], 0x1e
je 0x4b062e
mov ecx, esi
call fcn.0051b870
mov dword [esi], vtable.CComObjectNoRef_class_CMPSContainer_.1.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CMPSContainer_.0
mov eax, esi
jmp 0x4b0630
xor eax, eax
mov ebp, dword [0x5b5894]
mov dword [0x5cb0bc], eax
mov eax, dword [0x5d0198]
xor edi, edi
dec eax
mov byte [esp + 0x148], bl
test eax, eax
mov ebx, 0x41c8d0
jl 0x4b0672
mov ecx, dword [0x5d0194]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 4]
cmp ebp, edx
jge 0x4b066e
inc edi
add ecx, 8
cmp edi, eax
jle 0x4b0659
test eax, eax
jge 0x4b0683
push 1
push ebp
push ebx
push edi
mov ecx, 0x5d0190
call fcn.00417800
jmp 0x4b06b2
xor esi, esi
test eax, eax
jle 0x4b06b2
mov eax, dword [0x5d0194]
cmp dword [eax + esi*8], 0x41c8d0
je 0x4b06b2
push 1
push ebp
push ebx
push edi
mov ecx, 0x5d0190
call fcn.00417800
mov ecx, dword [0x5d0198]
inc esi
dec ecx
cmp esi, ecx
jl 0x4b0689
mov dword [0x5cb0c0], 1
mov edx, dword [0x5d2a80]
mov esi, dword [0x5cb0bc]
mov ecx, 0x5d2a80
mov byte [esp + 0x148], 0
call dword [edx + 8]
cmp dword [esi + 0x103c], 1
jne 0x4b06ec
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
call fcn.0050a5b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x148], 0xffffffff
test eax, eax
je 0x4b0705
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x4b070e
xor eax, eax
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret