Function at 0x4036a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x4a4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x3ac]
push 0x104
push eax
call fcn.00401e30
lea edi, [esp + 0x3b4]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a4]
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.payserver_log
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
xor ebx, ebx
and ecx, 3
lea eax, [esp + 0x1a4]
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esp + 0x1a4]
xor eax, eax
mov cl, byte [esp + 0x13]
push 1
mov byte [esp + 0x20], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004031a0
test al, al
je 0x403788
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x1a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00403100
lea eax, [esp + 0x1c]
push 0x100000
push eax
mov ecx, 0x61e750
call fcn.004021f0
test eax, eax
mov eax, dword [esp + 0x20]
sete byte [esp + 0x13]
cmp eax, ebx
je 0x4037c8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4037bf
cmp al, 0xff
je 0x4037bf
dec al
mov byte [ecx], al
jmp 0x4037c8
push ecx
call fcn.0040afd2
add esp, 4
cmp byte [esp + 0x13], bl
je 0x4037f0
push 0x10
push str.error
push str.Initializing_LogFile_fail
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4a4
ret 0x10
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x26]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x2a]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2a]
push edx
mov edx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x2c8]
push str._r_n_r_n_Sword3PaySys_Start_____04d__02d__02d__02d:_02d:_02d._03d________r_n_r_n_r_n
push eax
call fcn.0040bed5
add esp, 0x24
lea ecx, [esp + 0x2ac]
push eax
push ecx
mov ecx, 0x61e750
call fcn.00402480
lea edi, [esp + 0x3ac]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x138a
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x41c20c
rep movsb byte es:[edi], byte [esi]
mov edi, str.acc_setup.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040bed5
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x68]
push ecx
push 0x1f
lea eax, [esp + 0x70]
push edx
push eax
push str.port
push str.Local
call fcn.00401ab0
lea ecx, [esp + 0x80]
push ecx
call fcn.0040c071
lea edx, [esp + 0xc4]
mov dword [esp + 0x5c], eax
push edx
lea eax, [esp + 0x88]
push 0x1f
push eax
push 0x41c1e8
push str.maxconnect
push str.Local
call fcn.00401ab0
add esp, 0x40
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040c071
lea edx, [esp + 0xa0]
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x64]
push 0x1f
push eax
push 0x41c1d8
push str.precision
push str.Local
call fcn.00401ab0
lea ecx, [esp + 0x78]
push ecx
call fcn.0040c071
lea edx, [esp + 0xbc]
mov esi, eax
push edx
lea eax, [esp + 0x80]
push 0x1f
push eax
push 0x41c1c8
push str.maxbuffer
push str.Local
call fcn.00401ab0
lea ecx, [esp + 0x94]
push ecx
call fcn.0040c071
lea edx, [esp + 0xd8]
mov edi, eax
push edx
lea eax, [esp + 0x9c]
push 0x1f
push eax
push str.1048576
push str.sizebuffer
push str.Local
call fcn.00401ab0
add esp, 0x54
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040c071
lea edx, [esp + 0xa0]
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x64]
push 0x1f
push eax
push str.3000
push str.timelog
push str.Local
call fcn.00401ab0
lea ecx, [esp + 0x78]
push ecx
call fcn.0040c071
add esp, 0x20
mov dword [esp + 0x7c], eax
mov dword [esp + 0x14], ebx
push str.heaven.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x44], ebp
je 0x403aa5
push str.CreateInterface
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
push 0x4192e0
call eax
test eax, eax
jl 0x403aa5
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x18]
push ecx
push 0x4192d0
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea edi, [esp + 0x3ac]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x9c]
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 edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x9c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
push 0x1f
push ecx
push 0x41c168
push str.DBConnects
push str.Local
call fcn.00401ab0
lea edx, [esp + 0x74]
push edx
call fcn.0040c071
add esp, 0x1c
mov dword [esp + 0x30], eax
call fcn.00407ff0
mov dword [esp + 0x3c], eax
call fcn.00408520
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x18], esi
jne 0x403b69
push 0x10
push str.error
push str.heaven_Error_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403db3
mov al, byte [esp + 0x13]
mov edi, str.account
mov byte [esp + 0x1c], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004031a0
test al, al
je 0x403bc6
mov edi, dword [esp + 0x20]
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 + 0x20]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], bl
mov cl, byte [esp + 0x13]
lea edi, [esp + 0x9c]
mov byte [esp + 0x48], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x50], ebx
mov ebp, ecx
lea ecx, [esp + 0x4c]
push ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004031a0
test al, al
je 0x403c26
mov edi, dword [esp + 0x4c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call fcn.00403100
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
call fcn.00407a60
test eax, eax
mov eax, dword [esp + 0x4c]
sete byte [esp + 0x13]
cmp eax, ebx
je 0x403c6a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x403c61
cmp al, 0xff
je 0x403c61
dec al
mov byte [ecx], al
jmp 0x403c6a
push ecx
call fcn.0040afd2
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x403c9b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x403c92
cmp al, 0xff
je 0x403c92
dec al
mov byte [ecx], al
jmp 0x403c9b
push ecx
call fcn.0040afd2
add esp, 4
cmp byte [esp + 0x13], bl
je 0x403cb9
push 0x10
push str.error
push str.Connect_DB_Error_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403daf
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push 0x403660
push esi
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
lea edx, [esp + 0x34]
mov eax, dword [esp + 0x34]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
push 0x104
push 0x41e618
mov esi, dword [esp + 0x4c0]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
call fcn.00403e80
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x4c8]
push eax
push ecx
push esi
call fcn.00404340
add esp, 0x10
test eax, eax
je 0x403d89
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea edx, [esp + 0x88]
push ebx
push edx
call esi
test eax, eax
je 0x403d89
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x80]
push eax
call edi
lea ecx, [esp + 0x80]
push ecx
call ebp
push ebx
push ebx
lea edx, [esp + 0x88]
push ebx
push edx
call esi
test eax, eax
jne 0x403d64
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, str.Nomal_exit____
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Nomal_exit____
call fcn.004040d0
add esp, 8
mov ebp, dword [esp + 0x44]
call fcn.00408590
call fcn.00408060
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x403ddf
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]
cmp ebp, ebx
je 0x403dea
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x2a]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x26]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2a]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x2a]
push eax
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x2c8]
push str._r_n_r_n_Sword3PaySys_Stop_____04d__02d__02d__02d:_02d:_02d._03d________r_n_r_n_r_n
push ecx
call fcn.0040bed5
add esp, 0x24
lea edx, [esp + 0x2ac]
mov ecx, 0x61e750
push eax
push edx
call fcn.00402480
mov ecx, 0x61e750
call fcn.004023b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4a4
ret 0x10