Function at 0x405f10
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4391dd
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x44a680]
xor eax, esp
mov dword [esp + 0x4d0], eax
push ebx
push esi
push edi
mov eax, dword [0x44a680]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], esi
cmp dword [0x44ba54], esi
je 0x4065b1
call fcn.004078e4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405f99
push 0x80004005
call fcn.00401fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x4f0], esi
call fcn.004078e4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405fca
push 0x80004005
call fcn.00401fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x4f0], 1
call fcn.004078e4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405ffc
push 0x80004005
call fcn.00401fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x4f0], 2
call fcn.004078e4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40602e
push 0x80004005
call fcn.00401fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x4f0], 3
call fcn.004078e4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x406060
push 0x80004005
call fcn.00401fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x4f0], 4
call fcn.004078e4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x406092
push 0x80004005
call fcn.00401fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x14], esi
mov byte [esp + 0x4f0], 5
mov eax, dword [0x44ba54]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], esi
jge 0x4060c7
mov dword [ebp + 0x14], esi
lea edx, [esp + 0x20]
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, esi
jl 0x4064be
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
xor eax, eax
cmp dword [esp + 0x40], esi
mov dword [esp + 0x58], eax
jle 0x4064b2
push 3
push eax
lea ecx, [esp + 0x4c]
call fcn.004153dc
mov byte [esp + 0x4f0], 7
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov edi, dword [esp + 0x64]
mov dword [eax + 0xc], edi
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov eax, dword [ebx + 0x2c]
push ecx
call eax
test eax, eax
jl 0x40648c
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40648c
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x43f54c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x406480
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406480
mov esi, dword [esp + 0x68]
test esi, esi
je 0x406215
cmp byte [esi], 0
je 0x406215
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jl 0x406209
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004041f0
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call edi
lea ecx, [esp + 0x38]
call fcn.004016a0
push eax
lea eax, [esp + 0x78]
push 0x43fddc
push eax
call fcn.0042445f
add esp, 0xc
push esi
lea ecx, [esp + 0x78]
push ecx
call fcn.00401160
test eax, eax
jne 0x40620f
lea edx, [esp + 0x44]
push edx
jmp 0x406491
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
jmp 0x40621b
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x40628a
cmp byte [esi], 0
je 0x40628a
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0xa4]
call eax
test eax, eax
jl 0x406286
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.004041f0
mov edx, dword [esp + 0x14]
push edx
call edi
lea ecx, [esp + 0x30]
call fcn.004016a0
push eax
lea eax, [esp + 0x78]
push 0x43fddc
push eax
call fcn.0042445f
add esp, 0xc
push esi
lea ecx, [esp + 0x78]
push ecx
call fcn.00401160
test eax, eax
jne 0x406286
lea edx, [esp + 0x44]
push edx
jmp 0x406491
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4062f2
cmp byte [esi], 0
je 0x4062f2
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
jl 0x4062f2
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004041f0
mov edx, dword [esp + 0x14]
push edx
call edi
lea ecx, [esp + 0x28]
call fcn.004016a0
push eax
lea eax, [esp + 0x78]
push 0x43fddc
push eax
call fcn.0042445f
add esp, 0xc
push esi
lea ecx, [esp + 0x78]
push ecx
call fcn.00401160
test eax, eax
jne 0x4062f2
lea edx, [esp + 0x44]
push edx
jmp 0x406491
push 0x440ab8
lea ecx, [esp + 0x20]
call fcn.004077c0
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4063bd
cmp byte [esi], 0
je 0x4063bd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
jl 0x4063bd
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
call fcn.004041f0
mov edx, dword [esp + 0x14]
push edx
call edi
lea ecx, [esp + 0x34]
call fcn.004016a0
push eax
lea eax, [esp + 0x78]
push 0x43fddc
push eax
call fcn.0042445f
add esp, 0xc
push esi
lea ecx, [esp + 0x78]
push ecx
call fcn.00401160
test eax, eax
setne bl
cmp byte [esp + 0x74], 0
je 0x4063af
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
push edx
push eax
movzx ecx, bl
push ecx
push esi
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xf0]
push str.SoSanhID___s_____s__bb_d_dem__d____d
push eax
call fcn.0042445f
add esp, 0x1c
lea ecx, [esp + 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, bl
jne 0x4063bd
lea edx, [esp + 0x44]
push edx
jmp 0x406491
push 0x440ab8
lea ecx, [esp + 0x20]
call fcn.004077c0
push 0x440ab8
lea ecx, [esp + 0x40]
call fcn.004077c0
mov esi, dword [esp + 0x60]
test esi, esi
je 0x40645f
cmp byte [esi], 0
je 0x40645f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push 0x43f55c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x406449
mov eax, dword [esp + 0x54]
test eax, eax
je 0x406449
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x406449
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.004041f0
mov edx, dword [esp + 0x14]
push edx
call edi
lea ecx, [esp + 0x1c]
call fcn.004016a0
push eax
lea eax, [esp + 0x78]
push 0x43fddc
push eax
call fcn.0042445f
add esp, 0xc
push esi
lea ecx, [esp + 0x78]
push ecx
call fcn.00401160
test eax, eax
jne 0x40645f
lea edx, [esp + 0x44]
push edx
jmp 0x406491
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406478
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebp + 0x14]
jge 0x4065d9
inc dword [esp + 0x24]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x4f4], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x58]
inc eax
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
jl 0x406109
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x4f0], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4f0], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40650e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4f0], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4f0], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40655e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4f0], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4f0], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d0]
xor ecx, esp
call fcn.00424450
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x1c]
call fcn.004016a0
push eax
lea ecx, [esp + 0x78]
push 0x43fddc
push ecx
call fcn.0042445f
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
add esp, 0xc
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x1c]
call fcn.00401f80
lea ecx, [esp + 0x3c]
call fcn.00401f80
lea ecx, [esp + 0x34]
call fcn.00401f80
lea ecx, [esp + 0x28]
call fcn.00401f80
lea ecx, [esp + 0x30]
call fcn.00401f80
lea ecx, [esp + 0x38]
call fcn.00401f80
mov eax, esi
jmp 0x4065b3