Function at 0x572288
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x572291
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x572a1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 5
xor eax, eax
mov dword [esi], eax
mov eax, ebx
call fcn.00443028
test al, al
je 0x5729e8
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0057182c
test al, al
je 0x5722e7
mov dword [ebp - 0x10], 3
jmp 0x5729ef
xor edx, edx
push ebp
push 0x5729d5
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0040ab6c
cmp dword [ebp - 0x28], 0
jbe 0x57231b
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402e94
mov eax, dword [ebp - 0x28]
call fcn.00402e24
mov byte [ebp - 0x29], 1
xor edx, edx
push ebp
push 0x5729c4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.004054d0
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x572970
xor eax, eax
push ebp
push 0x572969
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0x572a30
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x572573
push 0x572a40
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x34], eax
push 0x572a54
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x38], eax
push 0x572a70
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x3c], eax
push 0x572a8c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x40], eax
push 0x572aa4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call dword [ebp - 0x30]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.0040b17c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x20]
call fcn.005717e4
test al, al
je 0x572406
mov dword [ebp - 0x10], 4
jmp 0x572919
push 1
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x14]
call fcn.0040b17c
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.005714d0
mov dword [0x5b20f0], eax
cmp dword [0x5b20f0], 0
je 0x572919
push 0x572ab8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x28], eax
push 0x572ac8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x2c], eax
push 0x572ad8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x30], eax
push 0x572ae4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x40], eax
cmp dword [ebp + 8], 0
jbe 0x5724ac
mov eax, dword [0x5b20f0]
cmp dword [eax + 0x40], 0
je 0x5724ac
mov edx, dword [ebp + 8]
mov eax, dword [0x5b20f0]
call fcn.00575fdc
push 0x572af4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x44], eax
cmp dword [ebp - 0x38], 0
je 0x5724d1
mov eax, fcn.00571bf0
call dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 0
je 0x5724df
mov eax, fcn.00571c50
call dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 0
je 0x5724ed
mov eax, fcn.005720d8
call dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0
je 0x572545
mov eax, fcn.00571b98
call dword [ebp - 0x44]
push 0x572afc
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
mov eax, dword [0x5b20f0]
mov dword [eax + 0x38], ebx
test ebx, ebx
jne 0x57252e
push 0x572b10
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x34], eax
push 0x572b20
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 0x34], 0
je 0x572562
push fcn.005a3960
mov ecx, fcn.005a38fc
mov edx, fcn.00571bec
mov eax, fcn.00571b10
call dword [ebp - 0x34]
mov eax, dword [0x5b20f0]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x572919
mov byte [ebp - 0x2a], 0
push ebp
mov eax, 0x572b38
call fcn.00572258
pop ecx
test al, al
je 0x57258d
mov byte [ebp - 0x2a], 1
jmp 0x5725a1
push ebp
mov eax, 0x572b54
call fcn.00572258
pop ecx
test al, al
je 0x5725a1
mov byte [ebp - 0x2a], 2
cmp byte [ebp - 0x2a], 0
jbe 0x572912
movzx edi, byte [ebp - 0x2a]
mov ecx, dword [edi*4 + 0x5b20f0]
lea eax, [ebp - 0x64]
mov edx, 0x572b6c
call fcn.0040531c
mov eax, dword [ebp - 0x64]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
mov ecx, dword [edi*4 + 0x5b20f8]
lea eax, [ebp - 0x68]
mov edx, 0x572b88
call fcn.0040531c
mov eax, dword [ebp - 0x68]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x4c], eax
mov ecx, dword [edi*4 + 0x5b2100]
lea eax, [ebp - 0x6c]
mov edx, 0x572bac
call fcn.0040531c
mov eax, dword [ebp - 0x6c]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x50], eax
mov ecx, dword [edi*4 + 0x5b2108]
lea eax, [ebp - 0x70]
mov edx, 0x572bd0
call fcn.0040531c
mov eax, dword [ebp - 0x70]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x54], eax
mov ecx, dword [edi*4 + 0x5b2110]
lea eax, [ebp - 0x74]
mov edx, 0x572bf0
call fcn.0040531c
mov eax, dword [ebp - 0x74]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 4]
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x14]
call fcn.0040b17c
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x20]
call fcn.005717e4
test al, al
je 0x5726b5
mov dword [ebp - 0x10], 4
jmp 0x572919
push 1
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.0040b17c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.005714d0
mov dword [0x5b20f0], eax
cmp dword [0x5b20f0], 0
je 0x572919
mov ecx, dword [edi*4 + 0x5b2118]
lea eax, [ebp - 0x80]
mov edx, 0x572c0c
call fcn.0040531c
mov eax, dword [ebp - 0x80]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x48], eax
mov ecx, dword [edi*4 + 0x5b2120]
lea eax, [ebp - 0x84]
mov edx, 0x572c24
call fcn.0040531c
mov eax, dword [ebp - 0x84]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x4c], eax
mov ecx, dword [edi*4 + 0x5b2128]
lea eax, [ebp - 0x88]
mov edx, 0x572c3c
call fcn.0040531c
mov eax, dword [ebp - 0x88]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x50], eax
mov ecx, dword [edi*4 + 0x5b2130]
lea eax, [ebp - 0x8c]
mov edx, 0x572c50
call fcn.0040531c
mov eax, dword [ebp - 0x8c]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x60], eax
cmp dword [ebp + 8], 0
jbe 0x5727cd
mov eax, dword [0x5b20f0]
cmp dword [eax + 0x60], 0
je 0x5727cd
mov edx, dword [ebp + 8]
mov eax, dword [0x5b20f0]
call fcn.00575fdc
xor ebx, ebx
mov bl, byte [ebp - 0x2a]
mov ecx, dword [ebx*4 + 0x5b2138]
lea eax, [ebp - 0x90]
mov edx, 0x572c6c
call fcn.0040531c
mov eax, dword [ebp - 0x90]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x64], eax
cmp dword [ebp - 0x4c], 0
je 0x572815
push 0x5721b4
call dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 0
je 0x572823
push 0x5721c4
call dword [ebp - 0x50]
cmp dword [ebp - 0x54], 0
je 0x572831
push 0x5721d8
call dword [ebp - 0x54]
cmp dword [ebp - 0x58], 0
je 0x5728e7
push 0x5721fc
call dword [ebp - 0x58]
mov ecx, dword [ebx*4 + 0x5b2150]
lea eax, [ebp - 0x94]
mov edx, 0x572c80
call fcn.0040531c
mov eax, dword [ebp - 0x94]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov eax, dword [0x5b20f0]
mov dword [eax + 0x58], edi
test edi, edi
jne 0x5728b2
mov ecx, dword [ebx*4 + 0x5b2140]
lea eax, [ebp - 0x98]
mov edx, 0x572c9c
call fcn.0040531c
mov eax, dword [ebp - 0x98]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x54], eax
mov ecx, dword [ebx*4 + 0x5b2148]
lea eax, [ebp - 0x9c]
mov edx, 0x572cb4
call fcn.0040531c
mov eax, dword [ebp - 0x9c]
call fcn.004054d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b20f0]
mov dword [edx + 0x5c], eax
cmp dword [ebp - 0x48], 0
je 0x572904
push 0x5a39d8
push 0x5a39c4
push 0x5721a0
push 0x572164
call dword [ebp - 0x48]
mov eax, dword [0x5b20f0]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x572919
mov dword [ebp - 0x10], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5729a8
cmp dword [ebp - 0x14], 0
je 0x572935
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x18], 0
je 0x572944
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x1c], 0
je 0x572953
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x10], 0
je 0x572968
cmp dword [ebp - 8], 0
je 0x572968
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor edx, edx
push ebp
push 0x57298d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0040fb0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5729a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5729cb
cmp byte [ebp - 0x29], 0
je 0x5729c3
mov eax, dword [ebp - 0x24]
call fcn.00402e24
ret
mov dword [ebp - 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x572a21
lea eax, [ebp - 0x9c]
mov edx, 0x11
call fcn.00405018
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405018
ret