Function at 0x40b140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x104c
call fcn.00418cf0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40b18f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x420ddc
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x4c], ebx
jne 0x40b1c1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420dc8
push ebx
call esi
push 0x420db4
push ebx
mov edi, eax
call esi
push 0x420da0
push ebx
mov dword [ebp - 0x1c], eax
call esi
push 0x420d80
push ebx
mov dword [ebp - 0x40], eax
call esi
push 0x420d6c
push ebx
mov dword [ebp - 0x30], eax
call esi
push 0x420d5c
push ebx
mov dword [ebp - 0x2c], eax
call esi
push 0x420d40
push ebx
mov dword [ebp - 0x38], eax
call esi
push 0x420d30
push ebx
mov dword [ebp - 0x28], eax
call esi
push 0x420d20
push ebx
mov dword [ebp - 0x3c], eax
call esi
test edi, edi
mov dword [ebp - 0x50], eax
je 0x40b4da
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40b4da
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x40b4da
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40b4da
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40b4da
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40b4da
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40b4da
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x40b4da
test eax, eax
je 0x40b4da
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
call fcn.0040afc0
xor ecx, ecx
cmp eax, ecx
je 0x40b48f
lea edx, [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x48]
push eax
push edx
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x54]
push eax
push edx
push ecx
push 2
push 0x400
push esi
push 1
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], ecx
call edi
test eax, eax
je 0x40b48f
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 0
push 0xb
push edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x5c], 4
call dword [ebp - 0x1c]
test eax, eax
je 0x40b48f
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
lea esi, [eax - 1]
push ecx
push 0
push esi
push 0xc
push edx
call dword [ebp - 0x1c]
test eax, eax
je 0x40b48f
cmp dword [ebp + 8], 0x800
ja 0x40b48f
mov edx, dword [ebp - 0x14]
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x105c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x105c]
push eax
push ecx
push esi
push 0xc
push edx
call dword [ebp - 0x1c]
test eax, eax
je 0x40b48f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x105c]
push eax
push ecx
push 0x10001
call dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40b48f
mov edx, eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
push ecx
push 0
push 0
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
push edx
push eax
push 7
push 0x10001
call esi
test eax, eax
je 0x40b48f
cmp dword [ebp - 0x20], 0x400
ja 0x40b48f
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x45c]
lea edx, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x45c]
push ecx
push 0
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
push edx
push eax
push 7
push 0x10001
call esi
test eax, eax
je 0x40b48f
lea ecx, [ebp - 0x45c]
push ecx
push 0x420d18
call dword [ebp - 0x38]
mov edx, eax
test edx, edx
je 0x40b48f
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x85c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x85c]
add edx, 8
push eax
push edx
push 4
call dword [ebp - 0x2c]
test eax, eax
jbe 0x40b48f
mov esi, 0x420ce8
lea edi, [ebp - 0x85c]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x40b46e
test al, al
je 0x40b460
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x40b46e
add edi, 2
add esi, 2
test al, al
jne 0x40b43c
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x24], ecx
jmp 0x40b48f
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x24], ecx
jmp 0x40b48f
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x40b4a1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b4ac
push eax
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b4b7
push eax
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40b4c4
push 1
push eax
call dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4