Function at 0x404030
Capabilities:
Create directory

Disassembly:
sub esp, 0x4a0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1a0]
push 0x104
push eax
call fcn.00401e20
lea edi, [esp + 0x1a8]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2a8]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str.relayserver_log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2ac]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esp + 0x2a8]
xor eax, eax
mov cl, byte [esp + 0x13]
push 1
mov byte [esp + 0x1c], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebp
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40411a
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x2a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x18]
push 0x100000
push eax
mov ecx, 0x612260
call fcn.004034b0
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
cmp eax, ebp
je 0x404158
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40414f
cmp al, 0xff
je 0x40414f
dec al
mov byte [ecx], al
jmp 0x404158
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x40417e
push 0x10
push str.error
push str.Initializing_LogFile_fail
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4a0
ret 0x10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x26]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x22]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x26]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x3cc]
push str._r_n_r_n_S3RelayServer_Start_____04d__02d__02d__02d:_02d:_02d._03d________r_n_r_n_r_n
push eax
call ebx
add esp, 0x24
lea ecx, [esp + 0x3b0]
push eax
push ecx
mov ecx, 0x612260
call fcn.00403760
lea edx, [esp + 0x1a0]
mov ecx, 0x412110
push edx
call fcn.004023b0
test eax, eax
je 0x40422c
mov edi, str.Init_CheckClientID_ok_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Init_CheckClientID_ok_
jmp 0x404241
mov edi, str.Init_CheckClientID_fail_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Init_CheckClientID_fail_
call fcn.00404b10
lea edi, [esp + 0x1a8]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x98]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x1e61
rep movsb byte es:[edi], byte [esi]
mov edi, str.relay_setup.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4111fc
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 eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x5c]
push ecx
push 0x1f
lea eax, [esp + 0x64]
push edx
push eax
push str.port
push str.Local
call fcn.00401aa0
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x74]
push ecx
call ebp
lea edx, [esp + 0xc0]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x7c]
push 0x1f
push eax
push 0x4111e8
push str.maxconnect
push str.Local
call fcn.00401aa0
add esp, 0x40
lea ecx, [esp + 0x50]
push ecx
call ebp
lea edx, [esp + 0x9c]
mov esi, eax
push edx
lea eax, [esp + 0x58]
push 0x1f
push eax
push 0x4111d8
push str.precision
push str.Local
call fcn.00401aa0
lea ecx, [esp + 0x6c]
push ecx
call ebp
lea edx, [esp + 0xb8]
mov edi, eax
push edx
lea eax, [esp + 0x74]
push 0x1f
push eax
push 0x4111c8
push str.maxbuffer
push str.Local
call fcn.00401aa0
lea ecx, [esp + 0x88]
push ecx
call ebp
lea edx, [esp + 0xd4]
mov ebx, eax
push edx
lea eax, [esp + 0x90]
push 0x1f
push eax
push str.1048576
push str.sizebuffer
push str.Local
call fcn.00401aa0
add esp, 0x54
lea ecx, [esp + 0x50]
push ecx
call ebp
lea edx, [esp + 0x9c]
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0x58]
push 0x1f
push eax
push str.3000
push str.timelog
push str.Local
call fcn.00401aa0
lea ecx, [esp + 0x6c]
push ecx
call ebp
lea edx, [esp + 0xb8]
mov dword [esp + 0x90], eax
push edx
lea eax, [esp + 0x74]
push 0x1f
push eax
push 0x411088
push str.AddressLog
push str.Local
call fcn.00401aa0
lea ecx, [esp + 0x88]
push ecx
call ebp
add esp, 0x3c
mov dword [0x6122ac], eax
mov dword [esp + 0x14], 0
push str.heaven.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0x78], eax
je 0x4044a0
push str.CreateInterface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0
push edx
push 0x40e2d8
call eax
test eax, eax
jl 0x4044a0
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x78]
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
push edx
lea edx, [esp + 0x38]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x30]
push edx
push 0x40e2c8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edi, [esp + 0x1a0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DataBase.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push 0x1f
push ecx
push 0x41115c
push str.DBConnects
push str.Local
call fcn.00401aa0
lea edx, [esp + 0x68]
push edx
call ebp
add esp, 0x1c
mov dword [esp + 0x2c], eax
call fcn.00408b10
mov dword [esp + 0x34], eax
call fcn.00409200
mov ebx, eax
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
jne 0x40455f
push 0x10
push str.error
push str.heaven_Error_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404783
mov al, byte [esp + 0x13]
mov edi, str.account
mov byte [esp + 0x18], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], esi
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4045bc
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.account
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
xor esi, esi
mov byte [eax + ebp], 0
mov cl, byte [esp + 0x13]
lea edi, [esp + 0x98]
mov byte [esp + 0x40], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x48], esi
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40461d
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], ebp
xor esi, esi
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.004083f0
test eax, eax
mov eax, dword [esp + 0x44]
sete byte [esp + 0x13]
cmp eax, esi
je 0x404661
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404658
cmp al, 0xff
je 0x404658
dec al
mov byte [ecx], al
jmp 0x404661
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], esi
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
je 0x404692
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404689
cmp al, 0xff
je 0x404689
dec al
mov byte [ecx], al
jmp 0x404692
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x4046b2
push 0x10
push str.error
push str.Connect_DB_Error_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404783
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push 0x403ff0
push ebx
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
lea edx, [esp + 0x38]
mov eax, dword [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
push 0x104
push 0x412128
mov esi, dword [esp + 0x4bc]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
call fcn.00404860
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c4]
push eax
push ecx
push esi
call fcn.00404d40
add esp, 0x10
test eax, eax
je 0x40477a
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x84]
push 0
push edx
call esi
test eax, eax
je 0x40477a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x7c]
push eax
call edi
lea ecx, [esp + 0x7c]
push ecx
call ebp
push 0
push 0
lea edx, [esp + 0x84]
push 0
push edx
call esi
test eax, eax
jne 0x404758
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor esi, esi
call fcn.00409410
call fcn.00408b40
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4047af
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x4047be
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0x412110
call fcn.00402690
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x22]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x24]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x26]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
push eax
mov eax, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x3cc]
push str._r_n_r_n_S3RelayServer_Stop_____04d__02d__02d__02d:_02d:_02d._03d________r_n_r_n_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea edx, [esp + 0x3b0]
mov ecx, 0x612260
push eax
push edx
call fcn.00403760
mov ecx, 0x612260
call fcn.00403680
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4a0
ret 0x10