Function at 0x401260
Capabilities:
Access peb ldr_data
Delete file
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40d42e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
xor ebx, ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xc], 6
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 8], bl
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULSqlca::constructor_void_]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x520], ebx
call dword [sym.imp.ulrttd9.dll_public:_bool___thiscall_ULSqlcaBase::Initialize_void_]
mov ecx, 0x4143a8
mov byte [esp + 0x14], bl
call fcn.00401f40
call fcn.00401cb0
cmp eax, ebx
mov dword [0x4143a0], eax
jne 0x401316
push str.Error_loading_language_DLL
call fcn.00403068
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x520], 0xffffffff
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULSqlca::destructor_void_]
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x514]
mov dword fs:[0], ecx
add esp, 0x520
ret
push ebp
push esi
push edi
mov edi, dword [esp + 0x534]
cmp edi, 4
jl 0x40161b
push 8
push str.9010
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.ulrttd9.dll_class_UltraLite_DatabaseManager____stdcall_ULInternalInitDatabaseManager_class_ULSqlcaBase___unsigned_char___unsigned_char_]
push 0x14
mov dword [esp + 0x38], eax
call fcn.00401d60
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0x52c], 1
je 0x401369
lea ecx, [esi + 0x10]
call dword [sym.imp.ulxml9.dll_public:_void___thiscall_AttrStr::constructor_void_]
jmp 0x40136b
xor esi, esi
mov ecx, dword [0x4143a0]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x530], 0
mov dword [esp + 0x40], esi
call dword [sym.imp.ulxml9.dll_public:_bool___thiscall_UlXml::Init_void__]
test al, al
jne 0x4013ab
push 1
mov ecx, esi
call dword [sym.imp.ulxml9.dll_public:_char_const____thiscall_UlXml::GetLastError_void_]
push eax
call fcn.004010a0
add esp, 8
mov byte [esp + 0x14], 1
jmp 0x401b8c
mov edx, dword [esp + 0x78]
push edx
call dword [sym.imp.ulrttd9.dll__ULEnableGenericSchema_4]
mov ebp, dword [esp + 0x538]
xor bl, bl
mov esi, 1
lea eax, [edi - 2]
cmp eax, esi
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], bl
jle 0x401565
mov dword [esp + 0x1c], 5
mov dword [esp + 0x24], 4
lea ecx, [ecx]
mov eax, dword [ebp + esi*4]
push 0x40e2c4
push eax
call fcn.0040362e
add esp, 8
test eax, eax
jne 0x401421
mov al, byte [esp + 0x17]
test al, al
jne 0x401613
mov byte [esp + 0x20], 1
mov byte [esp + 0x17], 1
jmp 0x40153f
mov ecx, dword [ebp + esi*4]
push 0x40e2c0
push ecx
call fcn.0040362e
add esp, 8
test eax, eax
jne 0x401452
mov al, byte [esp + 0x16]
test al, al
jne 0x401613
mov byte [esp + 0x15], 1
mov byte [esp + 0x16], 1
jmp 0x40153f
mov edx, dword [ebp + esi*4]
push str._toxml
push edx
call fcn.0040362e
add esp, 8
test eax, eax
jne 0x40147e
test bl, bl
jne 0x401613
mov byte [esp + 0x13], 1
mov byte [esp + 0x12], bl
jmp 0x40153d
mov eax, dword [ebp + esi*4]
push str._tousm
push eax
call fcn.0040362e
add esp, 8
test eax, eax
jne 0x4014a5
test bl, bl
jne 0x401613
mov byte [esp + 0x12], bl
jmp 0x401538
mov ecx, dword [ebp + esi*4]
push str._topdb
push ecx
call fcn.0040362e
add esp, 8
test eax, eax
jne 0x401613
test bl, bl
jne 0x401613
mov ecx, dword [esp + 0x24]
lea eax, [edi - 1]
cmp ecx, eax
je 0x4014dc
cmp dword [esp + 0x1c], eax
jne 0x401613
mov edi, dword [ebp + esi*4 + 4]
mov eax, edi
mov dword [esp + 0x44], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014f0
sub eax, edx
cmp eax, 4
ja 0x4015f0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401507
sub eax, edx
cmp eax, 1
jb 0x4015f0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x534]
inc esi
inc ecx
inc eax
mov byte [esp + 0x12], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x13], 0
mov bl, 1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc esi
inc eax
mov dword [esp + 0x24], eax
inc edx
lea eax, [edi - 2]
cmp esi, eax
mov dword [esp + 0x1c], edx
jl 0x4013f0
mov al, byte [esp + 0x20]
test al, al
jne 0x401579
push 0
push 0x40e274
push 0x1780
call fcn.00401100
add esp, 0xc
mov edi, dword [ebp + esi*4]
mov esi, dword [ebp + esi*4 + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
lea eax, [esp + 0x108]
push eax
push 0x104
push edi
mov dword [esp + 0x2c], esi
call ebx
push 0
lea ecx, [esp + 0x318]
push ecx
push 0x104
push esi
call ebx
lea edx, [esp + 0x314]
push edx
lea eax, [esp + 0x108]
push eax
call fcn.0040362e
add esp, 8
test eax, eax
jne 0x40165c
push eax
push eax
push 0x17a9
call fcn.00401100
mov dword [esp + 0x24], 5
add esp, 0xc
mov byte [esp + 0x14], 1
jmp 0x401b8c
push 0
push 0
push 0x179d
call fcn.00401100
mov dword [esp + 0x24], 5
add esp, 0xc
mov byte [esp + 0x14], 1
jmp 0x401b8c
mov al, byte [esp + 0x20]
test al, al
jne 0x40162f
push 0
push 0x40e274
push 0x1780
call fcn.00401100
add esp, 0xc
xor esi, esi
push 0
lea edx, [esi + 0x178e]
push 0
push edx
call fcn.00401100
add esp, 0xc
inc esi
cmp esi, 0xa
jl 0x401631
mov dword [esp + 0x18], 5
mov byte [esp + 0x14], 1
jmp 0x401b8c
lea ecx, [esp + 0x104]
push 0x40e2a4
push ecx
call fcn.0040361b
add esp, 8
test eax, eax
jne 0x401696
push eax
push edi
push 0x178d
call fcn.00401100
mov dword [esp + 0x24], 2
add esp, 0xc
mov byte [esp + 0x14], 1
jmp 0x401b8c
push eax
call fcn.0040356e
mov al, byte [esp + 0x19]
add esp, 4
test al, al
jne 0x4016e1
push 0x40e2a4
push esi
call fcn.0040361b
add esp, 8
test eax, eax
je 0x4016e1
push eax
call fcn.0040356e
push 0
push esi
push 0x178c
call fcn.00401100
add esp, 0x10
mov dword [esp + 0x18], 3
mov byte [esp + 0x14], 1
jmp 0x401b8c
push 0x105
lea edi, [esp + 0x210]
call fcn.00401000
lea eax, [esp + 0x108]
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401700
sub eax, edx
mov edx, eax
lea eax, [esp + 0x20c]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401715
sub eax, edi
lea edx, [eax + edx + 0x64]
push edx
call fcn.00401d60
mov ebp, eax
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x214]
push ecx
push str.nt_file_s_nt_schema_s
push ebp
mov dword [esp + 0x54], ebp
call fcn.00403010
lea eax, [esp + 0x220]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401756
sub eax, edx
add eax, 0x64
push eax
call fcn.00401d60
lea edx, [esp + 0x210]
push edx
mov ebx, eax
push str.nt_file_s
push ebx
mov dword [esp + 0x40], ebx
call fcn.00403010
mov al, byte [esp + 0x23]
add esp, 0x10
test al, al
je 0x4018d4
mov edi, dword [esp + 0x20]
push edi
push 0
push 0x178a
call fcn.00401100
add esp, 0xc
push ebx
lea ecx, [esp + 0x4c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, ebx
mov byte [esp + 0x534], 2
call dword [eax + 8]
lea ecx, [esp + 0x48]
mov byte [esp + 0x52c], 0
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
push ebp
lea ecx, [esp + 0x4c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov eax, dword [ebx]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, ebx
mov byte [esp + 0x534], 3
call dword [eax + 4]
mov ebx, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x52c], 0
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0xc]
cmp eax, 0x7b
jne 0x401849
push 0
push 0
push 0x17a0
call fcn.00401100
mov dword [esp + 0x24], 5
add esp, 0xc
mov byte [esp + 0x14], 1
jmp 0x401b8c
test ebx, ebx
je 0x4018b8
test eax, eax
jne 0x4018b8
push edi
push eax
push 0x178b
call fcn.00401100
add esp, 0xc
push esi
mov esi, dword [esp + 0x3c]
push ebx
mov ecx, esi
call dword [sym.imp.ulxml9.dll_public:_bool___thiscall_UlXml::WriteXmlFromSchema_class_UltraLite_Connection___char_const__]
test al, al
jne 0x4018b2
push 1
mov ecx, esi
call dword [sym.imp.ulxml9.dll_public:_char_const____thiscall_UlXml::GetLastError_void_]
push eax
call fcn.004010a0
mov ecx, esi
mov esi, dword [sym.imp.ulxml9.dll_public:_char_const____thiscall_UlXml::GetExtraError_void_]
add esp, 8
call esi
test eax, eax
je 0x401b5c
mov ecx, dword [esp + 0x38]
push 1
call esi
push eax
call fcn.004010a0
add esp, 8
mov byte [esp + 0x14], 1
jmp 0x401b8c
push edi
jmp 0x401b75
lea ecx, [esp + 0x78]
push ecx
push 0x1785
call fcn.004011b0
add esp, 8
mov byte [esp + 0x14], 1
jmp 0x401b8c
mov ebp, dword [esp + 0x20]
push ebp
push 0
push 0x1781
call fcn.00401100
mov esi, dword [esp + 0x3c]
add esp, 0xc
push esi
lea ecx, [esp + 0x4c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov edi, dword [esp + 0x34]
mov edx, dword [edi]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, edi
mov byte [esp + 0x534], 4
call dword [edx + 4]
mov ebx, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x52c], 0
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
test ebx, ebx
jne 0x4019dd
mov edx, dword [esp + 0x78]
cmp dword [edx + 0xc], 0xfffffd7b
jne 0x401a0a
push esi
lea ecx, [esp + 0x6c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, edi
mov byte [esp + 0x534], 5
call dword [eax + 8]
lea ecx, [esp + 0x68]
mov byte [esp + 0x52c], bl
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4019a1
lea ecx, [esp + 0x78]
push ecx
push 0x1784
call fcn.004011b0
add esp, 8
mov byte [esp + 0x14], 1
jmp 0x401b8c
push esi
lea ecx, [esp + 0x6c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov edx, dword [edi]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, edi
mov byte [esp + 0x534], 6
call dword [edx + 4]
mov ebx, eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x52c], 0
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
push ebx
call dword [sym.imp.ulrttd9.dll_public:_static_class_UltraLite_DatabaseUpgrade____cdecl_UltraLite_DatabaseUpgrade::NewDatabaseUpgrade_class_UltraLite_Connection__]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x28], edi
jne 0x401a26
push eax
push eax
push 0x1788
call fcn.00401100
add esp, 0xc
mov byte [esp + 0x14], 1
jmp 0x401b8c
lea edx, [esp + 0x78]
push edx
push 0x1785
call fcn.004011b0
add esp, 8
mov byte [esp + 0x14], 1
jmp 0x401b8c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push ebp
push 0
push 0x1782
call fcn.00401100
add esp, 0xc
push ebx
push edi
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x10c]
push ecx
mov ecx, edi
call dword [sym.imp.ulxml9.dll_public:_bool___thiscall_UlXml::LoadSchemaFromXml_char_const___class_UltraLite_DatabaseUpgrade___class_UltraLite_Connection__]
test al, al
jne 0x401a99
push 1
mov ecx, edi
call dword [sym.imp.ulxml9.dll_public:_char_const____thiscall_UlXml::GetLastError_void_]
push eax
call fcn.004010a0
mov esi, dword [sym.imp.ulxml9.dll_public:_char_const____thiscall_UlXml::GetExtraError_void_]
add esp, 8
mov ecx, edi
call esi
test eax, eax
je 0x401a87
push 1
mov ecx, edi
call esi
push eax
call fcn.004010a0
add esp, 8
mov dword [esp + 0x18], 4
mov byte [esp + 0x14], 1
jmp 0x401b8c
mov al, byte [esp + 0x12]
test al, al
je 0x401abe
push 0x105
lea edi, [esp + 0x420]
call fcn.00401000
add esp, 4
lea edi, [esp + 0x41c]
jmp 0x401ac2
mov edi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x5c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x530], 7
call dword [edx + 0x10]
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x58]
inc bl
mov byte [esp + 0x52c], 0
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
test bl, bl
je 0x401b15
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push 0x1787
call fcn.00401100
add esp, 0xc
mov al, byte [esp + 0x12]
test al, al
je 0x401b63
push ebp
push 0
push 0x179f
call fcn.00401100
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
add esp, 0xc
push edx
push eax
push edi
call dword [sym.imp.ulrttd9.dll__ULBin2Pdb_12]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x401b63
push 0
push 0
push 0x179e
call fcn.00401100
add esp, 0xc
mov byte [esp + 0x14], 1
jmp 0x401b8c
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x64]
mov dword [esp + 0x28], 0
push ebp
push 0
push 0x1789
call fcn.00401100
add esp, 0xc
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x401bae
mov ecx, esi
call dword [sym.imp.ulxml9.dll_public:_bool___thiscall_UlXml::Fini_void_]
lea ecx, [esi + 0x10]
call dword [sym.imp.ulxml9.dll_public:_void___thiscall_AttrStr::destructor_void_]
push esi
call fcn.00401da0
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x401bbb
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x401bc8
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [esp + 0x34]
test esi, esi
mov edi, dword [esp + 0x30]
je 0x401c2f
push edi
lea ecx, [esp + 0x5c]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::constructor_char_const__]
mov eax, dword [esi]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, esi
mov byte [esp + 0x534], 8
call dword [eax + 8]
lea ecx, [esp + 0x58]
mov byte [esp + 0x52c], 0
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULValue::destructor_void_]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x401c2f
mov al, byte [esp + 0x14]
test al, al
jne 0x401c2f
lea ecx, [esp + 0x78]
push ecx
push 0x1784
call fcn.004011b0
add esp, 8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x401c40
push eax
call fcn.00401da0
add esp, 4
test edi, edi
je 0x401c4d
push edi
call fcn.00401da0
add esp, 4
mov eax, dword [0x4143a0]
test eax, eax
je 0x401c5d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x401c6d
mov edx, dword [esi]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call dword [edx + 0xc]
lea ecx, [esp + 0x78]
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULSqlcaBase::Finalize_void_]
lea ecx, [esp + 0x78]
mov dword [esp + 0x52c], 0xffffffff
call dword [sym.imp.ulrttd9.dll_public:_void___thiscall_ULSqlca::destructor_void_]
mov ecx, dword [esp + 0x524]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x520
ret