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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45174c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe10
mov eax, dword [0x46b378]
push ebx
mov dword [esp + 0xe0c], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x3a
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
je 0x41e6f9
nop
add eax, 2
cmp word [eax], 0x3a
jne 0x41e6f0
xor ebx, ebx
lea edx, [eax + 2]
xor eax, eax
cmp edx, ebx
mov ecx, 0x10
lea edi, [esp + 0x32]
mov word [esp + 0x30], bx
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x7a]
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0xc2]
mov word [esp + 0xc0], bx
rep stosd dword es:[edi], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov ecx, 0x30
lea edi, [esp + 0x142]
mov word [esp + 0x140], bx
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x60a]
mov word [esp + 0x608], bx
mov dword [esp + 0x14], edx
mov word [esp + 0x24], bx
mov word [esp + 0x2e], ax
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
rep stosd dword es:[edi], eax
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
je 0x41e864
xor ecx, ecx
cmp ecx, str.roomid
je 0x41e864
lea eax, [esp + 0x30]
test eax, eax
je 0x41e864
mov edi, edx
mov dword [esp + 0xc], ebx
mov edi, edi
cmp edi, ebx
je 0x41e864
push 0x26
push edi
call dword [sym.imp.MSVCR71.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41e7f4
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x41e81e
inc eax
cmp eax, ebx
lea edi, [esi + 2]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
jle 0x41e7c0
jmp 0x41e864
cmp dword [esp + 0xc], ebx
jne 0x41e860
mov esi, dword [sym.imp.MSVCR71.dll_wcslen]
push str.roomid
call esi
lea edi, [edi + eax*2]
push edi
call esi
add esp, 8
cmp eax, 0x20
jg 0x41e860
push eax
push edi
lea ecx, [esp + 0x38]
push ecx
jmp 0x41e83f
push str.roomid
call dword [sym.imp.MSVCR71.dll_wcslen]
lea eax, [edi + eax*2]
sub esi, eax
sar esi, 1
add esp, 4
cmp esi, 0x20
jg 0x41e860
push esi
push eax
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.MSVCR71.dll_wcsncpy]
lea eax, [esp + 0x3c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x838], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x20
lea edx, [esp + 0x7c]
push edx
push 1
push str.userid
push eax
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41e89c
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.MSVCR71.dll__wtoi64]
add esp, 4
mov dword [esi + 0x830], eax
mov dword [esi + 0x834], edx
mov edi, dword [esp + 0x14]
push 0x3c
lea edx, [esp + 0xc4]
push edx
push 2
push str.nickname
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41e919
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041e2d0
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea eax, [esi + 0x840]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 5
lea ecx, [esp + 0x28]
push ecx
push 3
push str.photeindex
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41e947
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
add esp, 4
mov dword [esi + 0x83c], eax
push 0x60
lea eax, [esp + 0x144]
push eax
push 4
push str.userkey
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41e9c7
mov byte [esp + 0x208], bl
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x209]
rep stosd dword es:[edi], eax
push ebx
push ebx
push 0x400
lea ecx, [esp + 0x214]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x150]
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
inc eax
push eax
lea eax, [esp + 0x154]
push eax
push ebx
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x208]
push ecx
mov ecx, esi
call fcn.0041e520
mov edi, dword [esp + 0x14]
push 2
lea edx, [esp + 0x20]
push edx
push 5
push str.opt
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
mov ebx, dword [sym.imp.MSVCR71.dll__wtoi]
je 0x41e9f7
lea eax, [esp + 0x1c]
push eax
call ebx
add esp, 4
mov dword [esi + 0x1090], eax
push 0x400
lea ecx, [esp + 0x60c]
push ecx
push 6
push str.web
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41ea2f
lea edx, [esp + 0x608]
push edx
lea eax, [esi + 0x86a]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 1
lea ecx, [esp + 0x1c]
push ecx
push 7
push str.webtype
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41ea59
lea edx, [esp + 0x18]
push edx
call ebx
add esp, 4
mov dword [esi + 0x1094], eax
push 1
lea eax, [esp + 0x24]
push eax
push 8
push str.halltype
push edi
mov ecx, esi
call fcn.0041dfb0
test eax, eax
je 0x41ea83
lea ecx, [esp + 0x20]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x1098], eax
mov ecx, dword [esp + 0xe1c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe14]
mov eax, 1
call fcn.004225d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4