Function at 0x51297c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x512984
push ecx
push ebx
push esi
mov ebx, eax
mov esi, dword [0x51a358]
xor eax, eax
push ebp
push 0x512e43
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004f2888
mov ecx, dword [esi]
lea eax, [ebp - 4]
mov edx, 0x512e58
call fcn.00404724
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 4]
lea eax, [ebp - 8]
mov edx, 0x512e6c
call fcn.00404724
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512e84
lea eax, [ebp - 0x10]
push eax
movzx eax, word [esi + 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x512e9c
call fcn.0040a024
push dword [ebp - 0x10]
push 0x512ea8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512eb4
lea eax, [ebp - 0x20]
push eax
movzx eax, word [esi + 0xa]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x512e9c
call fcn.0040a024
push dword [ebp - 0x20]
push 0x512ea8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x24]
mov edx, 0x512ecc
call fcn.00404724
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x28]
mov edx, 0x512ee4
call fcn.00404724
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512efc
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd dword [0x512f10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, 0xc
mov al, 3
call fcn.0040aaa4
push dword [ebp - 0x30]
push 0x512ea8
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512f1c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd dword [0x512f10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x38]
push eax
xor ecx, ecx
mov edx, 0xc
mov al, 3
call fcn.0040aaa4
push dword [ebp - 0x38]
push 0x512ea8
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512f38
lea eax, [ebp - 0x40]
push eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x512f54
call fcn.0040a024
push dword [ebp - 0x40]
push 0x512ea8
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512f64
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd dword [0x512f10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
mov edx, 0xc
mov al, 3
call fcn.0040aaa4
push dword [ebp - 0x48]
push 0x512ea8
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512f80
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd dword [0x512f10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
mov edx, 0xc
mov al, 3
call fcn.0040aaa4
push dword [ebp - 0x50]
push 0x512ea8
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512f9c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x512f54
call fcn.0040a024
push dword [ebp - 0x58]
push 0x512ea8
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x54]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512fb8
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd dword [0x512f10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x60]
push eax
xor ecx, ecx
mov edx, 0xc
mov al, 3
call fcn.0040aaa4
push dword [ebp - 0x60]
push 0x512ea8
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x512fd4
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd dword [0x512f10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
mov edx, 0xc
mov al, 3
call fcn.0040aaa4
push dword [ebp - 0x68]
push 0x512ea8
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00404798
mov edx, dword [ebp - 0x64]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 0x34]
lea eax, [ebp - 0x6c]
mov edx, 0x512ff0
call fcn.00404724
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x70]
mov edx, 0x513008
call fcn.00404724
mov edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x513020
lea eax, [ebp - 0x78]
push eax
mov eax, dword [esi + 0x3c]
mov ecx, 5
mov edx, 1
call fcn.00404938
push dword [ebp - 0x78]
push 0x513038
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi + 0x3c]
mov ecx, 3
mov edx, 6
call fcn.00404938
push dword [ebp - 0x7c]
push 0x513038
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi + 0x3c]
mov ecx, 7
mov edx, 9
call fcn.00404938
push dword [ebp - 0x80]
push 0x513038
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x3c]
mov ecx, 5
mov edx, 0x10
call fcn.00404938
push dword [ebp - 0x84]
lea eax, [ebp - 0x74]
mov edx, 8
call fcn.00404798
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x88]
mov edx, 0x513044
call fcn.00404724
mov edx, dword [ebp - 0x88]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [esi + 0x44]
lea eax, [ebp - 0x8c]
mov edx, 0x513060
call fcn.00404724
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512e4a
lea eax, [ebp - 0x8c]
mov edx, 0x1d
call fcn.0040443c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040443c
ret