Function at 0x511f68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x511f70
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x512266
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42d4cc]
call fcn.004052e0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x512244
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x78]
call fcn.0050f690
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x44]
mov dword [ebp - 8], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004386f0
test bl, bl
je 0x512040
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
je 0x512011
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004fb3f8
jmp 0x512226
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, 0x512284
call fcn.00437198
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004fb348
jmp 0x512226
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
je 0x51205a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov esi, dword [eax + 0x70]
jmp 0x512063
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x98]
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x74]
mov dl, 1
mov eax, dword [0x501ac0]
call fcn.00501d4c
mov ebx, eax
lea ecx, [ebp - 0x1c]
mov edx, 0x512284
mov eax, esi
call fcn.00437198
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebp - 0xc]
call fcn.004fb348
mov eax, dword [ebx + 0x40]
call fcn.00511d00
lea ecx, [ebp - 0x24]
mov edx, 0x512284
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov eax, ebx
call fcn.0050d848
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp - 0x2c]
mov edx, 0x512284
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov eax, ebx
call fcn.0050d7dc
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
call fcn.00407054
lea ecx, [ebp - 0x30]
mov edx, 0x5122ac
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea ecx, [ebp - 0x34]
mov edx, 0x5122ec
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp - 0x38]
mov edx, 0x512310
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
lea ecx, [ebp - 0x3c]
mov edx, 0x512340
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x3c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea ecx, [ebp - 0x40]
mov edx, 0x512374
mov eax, esi
call fcn.00437198
mov edx, dword [ebp - 0x40]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
jne 0x5121e6
mov eax, dword [ebx + 0x18]
add eax, 0x48
mov edx, 0x5123a8
call fcn.00407054
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x51219b
call fcn.004051d8
test eax, eax
jl 0x5121e6
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.00436f48
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x24]
call fcn.004fc120
test eax, eax
jge 0x5121de
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x5121aa
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x90]
call fcn.00407054
lea edx, [ebp - 0x4c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x4c]
mov edx, 0x5123b8
call fcn.004bf1f0
test al, al
je 0x51221d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dword [ebx + 0x38], eax
jmp 0x512226
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 4]
call fcn.00405310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51224b
lea eax, [ebp - 0xc]
call fcn.0041b008
ret