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

Disassembly:
push 0xffffffffffffffff
push 0x463c3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push str.BossRan_
lea eax, [esp + 0x2c]
push 0x4b3a44
push eax
mov ebp, ecx
call fcn.00401590
push 0x4b3a4c
push eax
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x7c], esi
call fcn.00402b10
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp + 0x80]
cmp ecx, esi
jne 0x408c9a
mov dword [esp + 0x14], esi
jmp 0x408ca9
mov eax, dword [ebp + 0x84]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
jle 0x408eea
mov dword [esp + 0x24], esi
jmp 0x408cc0
mov eax, dword [ebp + 0x80]
mov edx, dword [esp + 0x20]
mov edi, dword [eax + edx*4]
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
lea ebx, [ebp + 0xac]
push esi
mov ecx, ebx
mov byte [esp + 0x68], 3
call fcn.0042b0b0
cmp eax, dword [ebx + 4]
mov dword [esp + 0x2c], eax
je 0x408d12
add eax, 0xc
push eax
push esi
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x408d12
lea eax, [esp + 0x2c]
jmp 0x408d1d
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov esi, dword [eax]
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp + 0xb0]
xor ebx, ebx
cmp esi, eax
je 0x408d3f
mov ebx, 1
mov ecx, ebp
call fcn.0040c3f0
test eax, eax
jne 0x408f02
test ebx, ebx
jne 0x408dc5
lea ecx, [esp + 0x1c]
call dword [0x46e148]
push 0x2f
push str.IDS_MESSAGE
mov byte [esp + 0x6c], 4
call fcn.0040ee00
add esp, 8
push eax
lea ecx, [esp + 0x20]
call dword [0x46e374]
push 0x100
call sub.MFC71.DLL_operator_new
add esp, 4
push edi
lea ecx, [esp + 0x20]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str._s__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0x58]
add esp, 0x10
push esi
push ebx
push 0x46d
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x24]
add eax, 0x3c
mov dword [esp + 0x24], eax
cdq
idiv dword [esp + 0x14]
push 0
push 0x64
add eax, 0xa
cdq
push edx
push eax
call fcn.00406ef0
add esp, 0x10
lea edx, [edi + 0x40]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
test ebx, ebx
mov byte [esp + 0x64], 5
jne 0x408e69
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4b3a4c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push edi
mov byte [esp + 0x88], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 7
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0xa8]
push eax
mov ecx, ebp
mov byte [esp + 0xa4], 5
call fcn.0040bb40
test eax, eax
je 0x408ef8
mov esi, dword [ebp + 0xa0]
test esi, esi
lea ecx, [ebp + 0x9c]
jne 0x408e7d
xor edx, edx
jmp 0x408e85
mov edx, dword [ecx + 8]
sub edx, esi
sar edx, 2
test esi, esi
je 0x408ea2
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x408ea2
mov eax, dword [ecx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x408eb2
mov eax, dword [ecx + 8]
lea edx, [esp + 0x34]
push edx
push 1
push eax
call fcn.004076a0
mov ecx, ebp
call fcn.0040c3f0
test eax, eax
jne 0x408ef8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x408cc0
xor esi, esi
mov eax, dword [ebp + 0x80]
cmp eax, esi
jne 0x408f23
xor ecx, ecx
jmp 0x408f2e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4
mov ecx, dword [ebp + 0x84]
sub ecx, eax
sar ecx, 2
mov edx, dword [ebp + 0xa0]
cmp edx, esi
jne 0x408f3c
xor eax, eax
jmp 0x408f47
mov eax, dword [ebp + 0xa4]
sub eax, edx
sar eax, 2
cmp ecx, eax
jne 0x408f02
mov ecx, ebp
call fcn.004086c0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 4