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

Disassembly:
push 0xffffffffffffffff
push 0x475a9f
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.New_Ran_IMBA_
lea eax, [esp + 0x2c]
push 0x4da7a4
push eax
mov ebp, ecx
call fcn.00401510
push 0x4da7ac
push eax
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x7c], esi
call fcn.00402d30
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 0x40936a
mov dword [esp + 0x14], esi
jmp 0x409379
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 0x4095ba
mov dword [esp + 0x24], esi
jmp 0x409390
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.0040ddd0
cmp eax, dword [ebx + 4]
mov dword [esp + 0x2c], eax
je 0x4093e2
add eax, 0xc
push eax
push esi
call dword [0x47e608]
add esp, 8
test al, al
jne 0x4093e2
lea eax, [esp + 0x2c]
jmp 0x4093ed
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 0x40940f
mov ebx, 1
mov ecx, ebp
call fcn.0040cad0
test eax, eax
jne 0x4095d2
test ebx, ebx
jne 0x409495
lea ecx, [esp + 0x1c]
call dword [0x47e138]
push 0x2f
push str.IDS_MESSAGE
mov byte [esp + 0x6c], 4
call fcn.0040f3d0
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.00407630
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 0x409539
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4da7ac
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 0x4095c8
mov esi, dword [ebp + 0xa0]
test esi, esi
lea ecx, [ebp + 0x9c]
jne 0x40954d
xor edx, edx
jmp 0x409555
mov edx, dword [ecx + 8]
sub edx, esi
sar edx, 2
test esi, esi
je 0x409572
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x409572
mov eax, dword [ecx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x409582
mov eax, dword [ecx + 8]
lea edx, [esp + 0x34]
push edx
push 1
push eax
call fcn.00407d70
mov ecx, ebp
call fcn.0040cad0
test eax, eax
jne 0x4095c8
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 0x409390
xor esi, esi
mov eax, dword [ebp + 0x80]
cmp eax, esi
jne 0x4095f3
xor ecx, ecx
jmp 0x4095fe
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 0x40960c
xor eax, eax
jmp 0x409617
mov eax, dword [ebp + 0xa4]
sub eax, edx
sar eax, 2
cmp ecx, eax
jne 0x4095d2
mov ecx, ebp
call fcn.00408d90
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