Function at 0x573444
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x57344d
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 0x573bd6
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.004434c0
test al, al
je 0x573ba4
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.005729e8
test al, al
je 0x5734a3
mov dword [ebp - 0x10], 3
jmp 0x573bab
xor edx, edx
push ebp
push 0x573b91
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0040aa6c
cmp dword [ebp - 0x28], 0
jbe 0x5734d7
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 0x573b80
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 0x573b2c
xor eax, eax
push ebp
push 0x573b25
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 0x573bec
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x57372f
push 0x573bfc
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x34], eax
push 0x573c10
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x38], eax
push 0x573c2c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x3c], eax
push 0x573c48
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x40], eax
push 0x573c60
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.0040b07c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x20]
call fcn.005729a0
test al, al
je 0x5735c2
mov dword [ebp - 0x10], 4
jmp 0x573ad5
push 1
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x14]
call fcn.0040b07c
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0057268c
mov dword [0x5b5140], eax
cmp dword [0x5b5140], 0
je 0x573ad5
push 0x573c74
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x28], eax
push 0x573c84
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x2c], eax
push 0x573c94
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x30], eax
push 0x573ca0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x40], eax
cmp dword [ebp + 8], 0
jbe 0x573668
mov eax, dword [0x5b5140]
cmp dword [eax + 0x40], 0
je 0x573668
mov edx, dword [ebp + 8]
mov eax, dword [0x5b5140]
call fcn.005771ac
push 0x573cb0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x44], eax
cmp dword [ebp - 0x38], 0
je 0x57368d
mov eax, fcn.00572dac
call dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 0
je 0x57369b
mov eax, fcn.00572e0c
call dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 0
je 0x5736a9
mov eax, fcn.00573294
call dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0
je 0x573701
mov eax, fcn.00572d54
call dword [ebp - 0x44]
push 0x573cb8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
mov eax, dword [0x5b5140]
mov dword [eax + 0x38], ebx
test ebx, ebx
jne 0x5736ea
push 0x573ccc
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x34], eax
push 0x573cdc
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5b5140]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 0x34], 0
je 0x57371e
push fcn.005a6c78
mov ecx, fcn.005a6c14
mov edx, fcn.00572da8
mov eax, fcn.00572ccc
call dword [ebp - 0x34]
mov eax, dword [0x5b5140]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x573ad5
mov byte [ebp - 0x2a], 0
push ebp
mov eax, 0x573cf4
call fcn.00573414
pop ecx
test al, al
je 0x573749
mov byte [ebp - 0x2a], 1
jmp 0x57375d
push ebp
mov eax, 0x573d10
call fcn.00573414
pop ecx
test al, al
je 0x57375d
mov byte [ebp - 0x2a], 2
cmp byte [ebp - 0x2a], 0
jbe 0x573ace
movzx edi, byte [ebp - 0x2a]
mov ecx, dword [edi*4 + 0x5b5140]
lea eax, [ebp - 0x64]
mov edx, 0x573d28
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 + 0x5b5148]
lea eax, [ebp - 0x68]
mov edx, 0x573d44
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 + 0x5b5150]
lea eax, [ebp - 0x6c]
mov edx, 0x573d68
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 + 0x5b5158]
lea eax, [ebp - 0x70]
mov edx, 0x573d8c
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 + 0x5b5160]
lea eax, [ebp - 0x74]
mov edx, 0x573dac
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.0040b07c
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x20]
call fcn.005729a0
test al, al
je 0x573871
mov dword [ebp - 0x10], 4
jmp 0x573ad5
push 1
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.0040b07c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0057268c
mov dword [0x5b5140], eax
cmp dword [0x5b5140], 0
je 0x573ad5
mov ecx, dword [edi*4 + 0x5b5168]
lea eax, [ebp - 0x80]
mov edx, 0x573dc8
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 [0x5b5140]
mov dword [edx + 0x48], eax
mov ecx, dword [edi*4 + 0x5b5170]
lea eax, [ebp - 0x84]
mov edx, 0x573de0
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 [0x5b5140]
mov dword [edx + 0x4c], eax
mov ecx, dword [edi*4 + 0x5b5178]
lea eax, [ebp - 0x88]
mov edx, 0x573df8
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 [0x5b5140]
mov dword [edx + 0x50], eax
mov ecx, dword [edi*4 + 0x5b5180]
lea eax, [ebp - 0x8c]
mov edx, 0x573e0c
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 [0x5b5140]
mov dword [edx + 0x60], eax
cmp dword [ebp + 8], 0
jbe 0x573989
mov eax, dword [0x5b5140]
cmp dword [eax + 0x60], 0
je 0x573989
mov edx, dword [ebp + 8]
mov eax, dword [0x5b5140]
call fcn.005771ac
xor ebx, ebx
mov bl, byte [ebp - 0x2a]
mov ecx, dword [ebx*4 + 0x5b5188]
lea eax, [ebp - 0x90]
mov edx, 0x573e28
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 [0x5b5140]
mov dword [edx + 0x64], eax
cmp dword [ebp - 0x4c], 0
je 0x5739d1
push 0x573370
call dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 0
je 0x5739df
push 0x573380
call dword [ebp - 0x50]
cmp dword [ebp - 0x54], 0
je 0x5739ed
push 0x573394
call dword [ebp - 0x54]
cmp dword [ebp - 0x58], 0
je 0x573aa3
push 0x5733b8
call dword [ebp - 0x58]
mov ecx, dword [ebx*4 + 0x5b51a0]
lea eax, [ebp - 0x94]
mov edx, 0x573e3c
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 [0x5b5140]
mov dword [eax + 0x58], edi
test edi, edi
jne 0x573a6e
mov ecx, dword [ebx*4 + 0x5b5190]
lea eax, [ebp - 0x98]
mov edx, 0x573e58
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 [0x5b5140]
mov dword [edx + 0x54], eax
mov ecx, dword [ebx*4 + 0x5b5198]
lea eax, [ebp - 0x9c]
mov edx, 0x573e70
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 [0x5b5140]
mov dword [edx + 0x5c], eax
cmp dword [ebp - 0x48], 0
je 0x573ac0
push 0x5a6cf0
push 0x5a6cdc
push 0x57335c
push 0x573320
call dword [ebp - 0x48]
mov eax, dword [0x5b5140]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x573ad5
mov dword [ebp - 0x10], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x573b64
cmp dword [ebp - 0x14], 0
je 0x573af1
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x18], 0
je 0x573b00
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x1c], 0
je 0x573b0f
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x10], 0
je 0x573b24
cmp dword [ebp - 8], 0
je 0x573b24
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor edx, edx
push ebp
push 0x573b49
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0040fa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x573b64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x573b87
cmp byte [ebp - 0x29], 0
je 0x573b7f
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 0x573bdd
lea eax, [ebp - 0x9c]
mov edx, 0x11
call fcn.00405018
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405018
ret