Function at 0x4055c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x439230
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a680]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x84], 1
mov eax, dword [0x44ba54]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebp
jge 0x405665
push str.Cannot_GetScript
call fcn.00404770
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405634
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
or edi, 0xffffffff
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40565e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40592b
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x4056d2
mov dword [esp + 0x1c], ebp
lea edx, [esp + 0x28]
push edx
push 0x800
push 1
mov byte [esp + 0x90], 2
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x38], ebp
mov ecx, dword [eax]
push 0x43f58c
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebp
jge 0x4056eb
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405634
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x405634
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x405674
push 0x8007000e
call fcn.00401fa0
mov esi, dword [esp + 0x90]
mov edi, dword [esi + 8]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
mov dword [esp + 0x3c], edi
neg ecx
or ecx, eax
push ecx
call fcn.004078ce
add esp, 4
xor ebx, ebx
cmp edi, ebp
mov dword [esp + 0x34], eax
jle 0x4057e6
lea eax, [edi - 1]
lea ecx, [edi*4 - 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x40575b
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x40589d
cmp eax, dword [esi + 8]
jge 0x40589d
mov eax, dword [esi + 4]
add eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x40577d
xor esi, esi
jmp 0x40578e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x4056e1
mov edx, dword [esp + 0x34]
lea ecx, [edx + ebp + 8]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x4057bb
test esi, esi
jne 0x4057a6
xor eax, eax
jmp 0x4057b9
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov eax, 8
push esi
mov word [ecx + ebp], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
sub dword [esp + 0x20], 4
dec dword [esp + 0x24]
inc ebx
add ebp, 0x10
cmp ebx, edi
jl 0x405750
xor ebp, ebp
xor eax, eax
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x40]
push edx
push 1
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
push ebp
push 0x43f58c
or edi, 0xffffffff
mov dword [esp + 0x4c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ecx, dword [esp + 0x34]
push ecx
mov esi, eax
call fcn.004078d9
add esp, 4
cmp esi, ebp
jge 0x4058a2
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405637
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x405637
call fcn.00407f68
mov esi, dword [esp + 0x94]
cmp esi, ebp
je 0x4058d4
lea ecx, [esp + 0x44]
cmp esi, ecx
je 0x4058d4
mov edx, ecx
push edx
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebp
jge 0x4058d4
mov ecx, 0xa
push eax
mov word [esi], cx
mov dword [esi + 8], eax
call fcn.00401fa0
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405902
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x405929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0xc