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

Disassembly:
push 0xffffffffffffffff
push 0x486f08
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 8], 0
mov edi, edx
sete al
test al, al
sete al
mov dword [esp + 0x18], edi
test al, al
je 0x412436
cmp dword [esi + 4], 0
sete al
test al, al
sete al
test al, al
je 0x412436
mov ebp, dword [edi + 0x10]
cmp dword [edi + 0xc], ebp
jbe 0x41236f
call fcn.00461ea8
mov ebx, dword [edi]
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x18]
cmp edi, dword [ecx + 0x10]
jbe 0x412386
call fcn.00461ea8
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebp
push ebx
push edi
push eax
lea eax, [esp + 0x7c]
push eax
mov edi, ecx
call fcn.00412f00
lea ecx, [esp + 0x14]
push ecx
mov edi, str.Item
call fcn.00402330
lea edx, [esp + 0x14]
push edx
push esi
lea esi, [esp + 0x68]
mov dword [esp + 0x88], 0
call fcn.00413a90
mov byte [esp + 0x80], 2
mov esi, dword [esp + 0x14]
test esi, esi
je 0x412405
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x412405
mov eax, dword [esi]
test eax, eax
je 0x4123ec
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4123fc
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
mov ecx, dword [esp + 0x68]
test ecx, ecx
sete al
test al, al
sete al
test al, al
je 0x41241f
mov ebx, dword [esp + 0x64]
test ebx, ebx
jg 0x41243d
mov dword [esp + 0x80], 0xffffffff
test ecx, ecx
je 0x412436
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
xor eax, eax
jmp 0x412861
lea ecx, [esp + 0x30]
push ecx
mov edi, str.Type
call fcn.00402330
lea edx, [esp + 0x40]
push edx
mov edi, str.File
mov byte [esp + 0x84], 3
call fcn.00402330
lea eax, [esp + 0x2c]
push eax
mov edi, str.Param
mov byte [esp + 0x84], 4
call fcn.00402330
lea ecx, [esp + 0x38]
push ecx
mov edi, str.WaitForExit
mov byte [esp + 0x84], 5
call fcn.00402330
lea edx, [esp + 0x14]
push edx
mov edi, str.Entry
mov byte [esp + 0x84], 6
call fcn.00402330
lea eax, [esp + 0x34]
push eax
mov edi, str.System
mov byte [esp + 0x84], 7
call fcn.00402330
mov byte [esp + 0x80], 8
mov edx, dword [0x4a7e58]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a7e58
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x3c], ebp
lea esi, [esp + 0x48]
call fcn.00411f20
xor edi, edi
mov byte [esp + 0x80], 0xa
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x44], edi
test ebx, ebx
jle 0x4126c8
lea ecx, [esp + 0x1c]
push ecx
mov edx, edi
lea ecx, [esp + 0x64]
call fcn.00408d90
mov byte [esp + 0x80], 0xb
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x41253b
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
jne 0x412551
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xa
call fcn.004024a0
jmp 0x4126b9
push 0x494900
xor ebx, ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00402250
push 0x494900
lea eax, [esp + 0x54]
call fcn.00402250
push 0x494900
lea eax, [esp + 0x58]
call fcn.00402250
push 0x494900
lea eax, [esp + 0x60]
mov byte [esp + 0x5c], bl
call fcn.00402250
push ebx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x38]
lea esi, [esp + 0x24]
call fcn.004080e0
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jne 0x4125b7
or eax, 0xffffffff
jmp 0x4125f8
push 0x495894
push ebp
call fcn.004626b1
add esp, 8
test eax, eax
jne 0x4125d0
mov eax, 2
jmp 0x4125f8
push str.SimpleDll
push ebp
call fcn.004626b1
add esp, 8
test eax, eax
je 0x4125f8
push str.ExtendDll
push ebp
call fcn.004626b1
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
jne 0x412617
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xa
call fcn.004024a0
jmp 0x4126b9
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
lea esi, [esp + 0x24]
call fcn.004080e0
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x412654
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004080e0
push 0
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x3c]
call fcn.004080e0
jmp 0x412696
cmp eax, 1
jne 0x41266f
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x24]
call fcn.004080e0
jmp 0x412696
cmp eax, 2
jne 0x412696
push 0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x34]
lea esi, [esp + 0x24]
call fcn.004080e0
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x3c]
call fcn.00407d20
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
call fcn.00412d90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xa
call fcn.004024a0
mov edi, dword [esp + 0x44]
inc edi
cmp edi, dword [esp + 0x6c]
mov dword [esp + 0x44], edi
jl 0x412501
lea esi, [esp + 0x48]
call fcn.00412880
lea eax, [ebp - 0x10]
mov byte [esp + 0x80], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4126f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test esi, esi
je 0x412737
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x412737
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x41271c
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x41272c
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
jmp 0x41273d
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x412771
lea edx, [esi + 8]
push edx
call edi
test eax, eax
jne 0x412771
mov eax, dword [esi]
test eax, eax
je 0x412758
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x412768
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4127a5
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x4127a5
mov eax, dword [esi]
test eax, eax
je 0x41278c
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x41279c
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4127d9
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x4127d9
mov eax, dword [esi]
test eax, eax
je 0x4127c0
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x4127d0
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
mov esi, dword [esp + 0x40]
test esi, esi
je 0x41280d
lea edx, [esi + 8]
push edx
call edi
test eax, eax
jne 0x41280d
mov eax, dword [esi]
test eax, eax
je 0x4127f4
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x412804
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
mov esi, dword [esp + 0x30]
test esi, esi
je 0x412841
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x412841
mov eax, dword [esi]
test eax, eax
je 0x412828
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x412838
push eax
call fcn.00462471
add esp, 4
push esi
call fcn.00458da0
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x68]
test eax, eax
je 0x41285c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00461932
add esp, 0x70
ret