Function at 0x30021cdb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.30021564
cmp dword [ebp - 0x14], 2
jne 0x30021d13
cmp dword [ebp - 8], 5
jb 0x30021d13
cmp dword [ebp - 0xc], 1
jb 0x30021d13
cmp dword [ebp - 0x10], 0xe24
jae 0x30021d2c
mov dword [0x30032144], 0x30021c55
mov dword [0x30032140], 0x30021c66
jmp 0x30021dbd
cmp dword [0x30032150], 0
jne 0x30021d45
push 0x30001e10
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x30032150], eax
cmp dword [0x30032150], 0
je 0x30021d6e
cmp dword [0x30032144], 0
jne 0x30021d6e
push 0x30001e00
mov ecx, dword [0x30032150]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032144], eax
cmp dword [0x30032144], 0
jne 0x30021d81
mov dword [0x30032144], 0x30021c55
cmp dword [0x30032150], 0
je 0x30021daa
cmp dword [0x30032140], 0
jne 0x30021daa
push 0x30001df4
mov edx, dword [0x30032150]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032140], eax
cmp dword [0x30032140], 0
jne 0x30021dbd
mov dword [0x30032140], 0x30021c66
push 0x30001de8
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30021dee
cmp dword [0x3003213c], 0
jne 0x30021dee
push 0x30001dd8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x3003213c], eax
cmp dword [0x3003213c], 0
jne 0x30021e01
mov dword [0x3003213c], 0x30021c88
cmp dword [ebp - 4], 0
je 0x30021e24
cmp dword [0x30032138], 0
jne 0x30021e24
push 0x30001dbc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032138], eax
cmp dword [0x30032138], 0
jne 0x30021e37
mov dword [0x30032138], 0x30021c88
cmp dword [ebp - 4], 0
je 0x30021e5a
cmp dword [0x30032134], 0
jne 0x30021e5a
push 0x30001da0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032134], eax
cmp dword [0x30032134], 0
jne 0x30021e6d
mov dword [0x30032134], 0x30021c9c
cmp dword [ebp - 4], 0
je 0x30021e90
cmp dword [0x30032130], 0
jne 0x30021e90
push 0x30001d84
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032130], eax
cmp dword [0x30032130], 0
jne 0x30021ea3
mov dword [0x30032130], 0x30021c9c
cmp dword [ebp - 4], 0
je 0x30021ec6
cmp dword [0x3003212c], 0
jne 0x30021ec6
push 0x30001d74
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x3003212c], eax
cmp dword [0x3003212c], 0
jne 0x30021ed9
mov dword [0x3003212c], 0x30021c9c
cmp dword [ebp - 4], 0
je 0x30021efc
cmp dword [0x30032128], 0
jne 0x30021efc
push 0x30001d68
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032128], eax
cmp dword [0x30032128], 0
jne 0x30021f0f
mov dword [0x30032128], 0x30021cb0
push 0x30001d58
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x30021f40
cmp dword [0x30032124], 0
jne 0x30021f40
push 0x30001d4c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032124], eax
cmp dword [0x30032124], 0
jne 0x30021f53
mov dword [0x30032124], 0x30021cb9
cmp dword [ebp - 0x18], 0
je 0x30021f76
cmp dword [0x30032120], 0
jne 0x30021f76
push 0x30001d3c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032120], eax
cmp dword [0x30032120], 0
jne 0x30021f89
mov dword [0x30032120], 0x30021cca
cmp dword [ebp - 0x18], 0
je 0x30021fac
cmp dword [0x3003211c], 0
jne 0x30021fac
push 0x30001d2c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x3003211c], eax
cmp dword [0x3003211c], 0
jne 0x30021fbf
mov dword [0x3003211c], 0x30021cca
cmp dword [ebp - 0x18], 0
je 0x30021fe2
cmp dword [0x30032118], 0
jne 0x30021fe2
push 0x30001d1c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032118], eax
cmp dword [0x30032118], 0
jne 0x30021ff5
mov dword [0x30032118], 0x30021cca
cmp dword [ebp - 0x18], 0
je 0x30022018
cmp dword [0x30032114], 0
jne 0x30022018
push 0x30001d0c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032114], eax
cmp dword [0x30032114], 0
jne 0x3002202b
mov dword [0x30032114], 0x30021cca
cmp dword [ebp - 0x18], 0
je 0x3002204e
cmp dword [0x30032110], 0
jne 0x3002204e
push 0x30001cfc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032110], eax
cmp dword [0x30032110], 0
jne 0x30022061
mov dword [0x30032110], 0x30021cca
cmp dword [ebp - 0x18], 0
je 0x30022084
cmp dword [0x3003210c], 0
jne 0x30022084
push 0x30001cec
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x3003210c], eax
cmp dword [0x3003210c], 0
jne 0x30022097
mov dword [0x3003210c], 0x30021cca
cmp dword [ebp - 0x18], 0
je 0x300220ba
cmp dword [0x30032108], 0
jne 0x300220ba
push 0x30001cd0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032108], eax
cmp dword [0x30032108], 0
jne 0x300220cd
mov dword [0x30032108], 0x30021cca
cmp dword [0x3003214c], 0
jne 0x300220e6
push 0x30001cc4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x3003214c], eax
cmp dword [0x3003214c], 0
jne 0x30022122
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.30021564
cmp dword [ebp - 0x20], 2
jne 0x30022122
cmp dword [ebp - 0x1c], 4
jne 0x30022122
mov dword [0x30032104], fcn.300230d2
mov dword [0x30032100], 0x3002326e
cmp dword [0x3003214c], 0
je 0x3002214b
cmp dword [0x30032104], 0
jne 0x3002214b
push 0x30001cb0
mov ecx, dword [0x3003214c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032104], eax
cmp dword [0x30032104], 0
jne 0x3002215e
mov dword [0x30032104], 0x30021c77
cmp dword [0x3003214c], 0
je 0x30022187
cmp dword [0x30032100], 0
jne 0x30022187
push 0x30001c98
mov edx, dword [0x3003214c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x30032100], eax
cmp dword [0x30032100], 0
jne 0x3002219a
mov dword [0x30032100], 0x30021c77
mov esp, ebp
pop ebp
ret