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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5123d8
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x5126d7
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
lea ecx, [ebp - 0xc]
mov edx, dword [esi + 0x98]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
cmp dword [ebp - 0xc], 0
jne 0x512435
mov ecx, 0x2cb
mov edx, 0x5126f4
mov eax, 0x512778
call fcn.004064fc
xor edx, edx
push ebp
push 0x5126a5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x5c]
xor edx, edx
push ebp
push 0x512694
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 8]
lea ecx, [edx - 1]
mov edx, eax
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
je 0x512485
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax + 0x70]
jmp 0x51248b
mov ebx, dword [esi + 0x98]
lea ecx, [ebp - 0x18]
mov edx, 0x5127d4
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0050d848
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5127d4
lea ecx, [ebp - 0x20]
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0050d7dc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, 0x10
call fcn.00407054
mov eax, esi
mov edx, dword [0x5076a0]
call fcn.0040552c
test al, al
je 0x5124ff
mov edx, dword [esi + 0xa8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x512544
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x24]
mov edx, 0x5127fc
call fcn.004bf1f0
test al, al
je 0x51252a
mov edx, 0x51283c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x512544
lea ecx, [ebp - 0x28]
mov edx, 0x51285c
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea ecx, [ebp - 0x2c]
mov edx, 0x51289c
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x30]
mov edx, 0x5128d0
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp - 0x34]
mov edx, 0x5128f4
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
lea ecx, [ebp - 0x38]
mov edx, 0x512924
mov eax, ebx
call fcn.00437198
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
jne 0x512630
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
add eax, 0x48
mov edx, 0x512958
call fcn.00407054
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x5125df
call fcn.004051d8
test eax, eax
jl 0x512630
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00436f48
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
call fcn.004fc120
test eax, eax
jge 0x512628
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x5125ee
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov edx, dword [esi + 0x90]
call fcn.00407054
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x44]
mov edx, 0x512968
call fcn.004bf1f0
test al, al
je 0x51266b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], eax
jmp 0x512677
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], eax
mov eax, esi
call fcn.00405310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51269b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x60]
ret