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

Disassembly:
push 0xffffffffffffffff
push 0x475d5f
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.Ran_IMBA_Season_2_
lea eax, [esp + 0x2c]
push 0x4db7c4
push eax
mov ebp, ecx
call fcn.00401510
push 0x4db7cc
push eax
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x7c], esi
call fcn.00402d20
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 0x40937a
mov dword [esp + 0x14], esi
jmp 0x409389
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 0x4095ca
mov dword [esp + 0x24], esi
jmp 0x4093a0
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.00437780
cmp eax, dword [ebx + 4]
mov dword [esp + 0x2c], eax
je 0x4093f2
add eax, 0xc
push eax
push esi
call dword [0x47f608]
add esp, 8
test al, al
jne 0x4093f2
lea eax, [esp + 0x2c]
jmp 0x4093fd
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 0x40941f
mov ebx, 1
mov ecx, ebp
call fcn.0040cad0
test eax, eax
jne 0x4095e2
test ebx, ebx
jne 0x4094a5
lea ecx, [esp + 0x1c]
call dword [0x47f138]
push 0x2f
push str.IDS_MESSAGE
mov byte [esp + 0x6c], 4
call fcn.0040f390
add esp, 8
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
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.004075d0
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 0x409549
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4db7cc
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.0040c220
test eax, eax
je 0x4095d8
mov esi, dword [ebp + 0xa0]
test esi, esi
lea ecx, [ebp + 0x9c]
jne 0x40955d
xor edx, edx
jmp 0x409565
mov edx, dword [ecx + 8]
sub edx, esi
sar edx, 2
test esi, esi
je 0x409582
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x409582
mov eax, dword [ecx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x409592
mov eax, dword [ecx + 8]
lea edx, [esp + 0x34]
push edx
push 1
push eax
call fcn.00407d50
mov ecx, ebp
call fcn.0040cad0
test eax, eax
jne 0x4095d8
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 0x4093a0
xor esi, esi
mov eax, dword [ebp + 0x80]
cmp eax, esi
jne 0x409603
xor ecx, ecx
jmp 0x40960e
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 0x40961c
xor eax, eax
jmp 0x409627
mov eax, dword [ebp + 0xa4]
sub eax, edx
sar eax, 2
cmp ecx, eax
jne 0x4095e2
mov ecx, ebp
call fcn.00408da0
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