Function at 0x422140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
je 0x42216a
cmp ecx, edi
je 0x42216a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [esi + 8], eax
je 0x42217f
mov eax, dword [ebp + 8]
push eax
call fcn.00415180
jmp 0x422189
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], 1
je 0x4221ab
push str.InitializeSecurityDescriptor
push eax
call ebx
mov dword [esi + 0x1c], eax
jmp 0x4221ae
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], edi
jne 0x4221b6
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4221ca
push str.SetSecurityDescriptorDacl
push eax
call ebx
mov dword [esi + 0x20], eax
jmp 0x4221cd
mov dword [esi + 0x20], edi
cmp dword [esi + 0x20], edi
jne 0x4221d5
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4221e9
push 0x494bb8
push eax
call ebx
mov dword [esi + 0x24], eax
jmp 0x4221ec
mov dword [esi + 0x24], edi
cmp dword [esi + 0x24], edi
jne 0x4221f4
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x422208
push 0x494b9c
push eax
call ebx
mov dword [esi + 0x28], eax
jmp 0x42220b
mov dword [esi + 0x28], edi
cmp dword [esi + 0x28], edi
jne 0x422213
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x422227
push 0x494b8c
push eax
call ebx
mov dword [esi + 0x2c], eax
jmp 0x42222a
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x2c], edi
jne 0x422232
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x422246
push 0x494b7c
push eax
call ebx
mov dword [esi + 0x30], eax
jmp 0x422249
mov dword [esi + 0x30], edi
cmp dword [esi + 0x30], edi
jne 0x422251
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x422265
push 0x494b64
push eax
call ebx
mov dword [esi + 0x34], eax
jmp 0x422268
mov dword [esi + 0x34], edi
cmp dword [esi + 0x34], edi
jne 0x422270
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x422284
push 0x494b4c
push eax
call ebx
mov dword [esi + 0x38], eax
jmp 0x422287
mov dword [esi + 0x38], edi
cmp dword [esi + 0x38], edi
jne 0x42228f
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4222a3
push 0x494b38
push eax
call ebx
mov dword [esi + 0x3c], eax
jmp 0x4222a6
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x3c], edi
jne 0x4222ae
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4222c2
push 0x494b24
push eax
call ebx
mov dword [esi + 0x40], eax
jmp 0x4222c5
mov dword [esi + 0x40], edi
cmp dword [esi + 0x40], edi
jne 0x4222cd
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4222e1
push 0x494b0c
push eax
call ebx
mov dword [esi + 0x44], eax
jmp 0x4222e4
mov dword [esi + 0x44], edi
cmp dword [esi + 0x44], edi
jne 0x4222ec
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x422300
push 0x494af4
push eax
call ebx
mov dword [esi + 0x48], eax
jmp 0x422303
mov dword [esi + 0x48], edi
cmp dword [esi + 0x48], edi
jne 0x42230b
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x42231f
push 0x494adc
push eax
call ebx
mov dword [esi + 0x4c], eax
jmp 0x422322
mov dword [esi + 0x4c], edi
cmp dword [esi + 0x4c], edi
jne 0x42232a
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x42233e
push 0x494ac0
push eax
call ebx
mov dword [esi + 0x50], eax
jmp 0x422341
mov dword [esi + 0x50], edi
cmp dword [esi + 0x50], edi
jne 0x422349
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x42235d
push 0x494ab8
push eax
call ebx
mov dword [esi + 0x54], eax
jmp 0x422360
mov dword [esi + 0x54], edi
cmp dword [esi + 0x54], edi
jne 0x422368
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x42237c
push 0x494aa8
push eax
call ebx
mov dword [esi + 0x58], eax
jmp 0x42237f
mov dword [esi + 0x58], edi
cmp dword [esi + 0x58], edi
jne 0x422387
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x42239b
push 0x494a9c
push eax
call ebx
mov dword [esi + 0x5c], eax
jmp 0x42239e
mov dword [esi + 0x5c], edi
cmp dword [esi + 0x5c], edi
jne 0x4223a6
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4223ba
push 0x494a88
push eax
call ebx
mov dword [esi + 0x60], eax
jmp 0x4223bd
mov dword [esi + 0x60], edi
mov eax, dword [esi + 0x60]
pop ebx
cmp eax, edi
jne 0x4223c8
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8