Function at 0x51d140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x673fba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.0064dc20
lea ecx, [esp + 0x78]
call fcn.0064dc20
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x60], 0
test ecx, ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
jne 0x51d1f8
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fld qword [esi + 0x90]
fabs
fcomp qword [0x691f50]
push 4
fnstsw ax
test ah, 1
je 0x51d8f7
call fcn.0048ed70
test eax, eax
je 0x51d230
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
test eax, eax
je 0x51d233
call fcn.0048ff00
jmp 0x51d238
mov ecx, dword [esi + 0x7c]
call fcn.004fe620
fcomp qword [0x691f50]
fnstsw ax
test ah, 1
je 0x51d25e
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x7c]
call fcn.0048fbe0
test eax, eax
jne 0x51d281
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x7c]
push 0
call fcn.0048fd00
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x51d2aa
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x51d2bc
mov eax, dword [esi + 0x7c]
push 0
push eax
jmp 0x51d2c2
mov ecx, dword [esi + 0x7c]
push 1
push ecx
call fcn.00470a10
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x51d2eb
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, ebx
call fcn.0048fd00
test eax, eax
mov dword [esp + 0x20], eax
jne 0x51d313
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.004da3a0
mov edx, dword [esi + 0x7c]
mov ecx, ebx
push edx
mov edi, eax
call fcn.00493970
cmp eax, 1
mov dword [esp + 0x44], eax
jne 0x51d3ba
mov eax, dword [edi]
lea ecx, [esp + 0x90]
push ecx
mov ecx, edi
call dword [eax + 0x7c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [edi]
lea eax, [esp + 0x90]
push eax
mov ecx, edi
call dword [edx + 0xf0]
push eax
lea ecx, [esp + 0x64]
call fcn.006578b0
fld qword [esp + 0x68]
fmul qword [0x69dca0]
push 0
push 0
sub esp, 8
fsubr qword [esp + 0x40]
fstp qword [esp]
fld qword [esp + 0x70]
fmul qword [0x69dca0]
fsubr qword [esp + 0x38]
jmp 0x51d437
mov edx, dword [edi]
lea eax, [esp + 0x90]
push eax
mov ecx, edi
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x3c], edx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf4]
push eax
lea ecx, [esp + 0x64]
call fcn.006578b0
fld qword [esp + 0x68]
fmul qword [0x69dca0]
push 0
push 0
sub esp, 8
fadd qword [esp + 0x40]
fstp qword [esp]
fld qword [esp + 0x70]
fmul qword [0x69dca0]
fadd qword [esp + 0x38]
sub esp, 8
lea ecx, [esp + 0x90]
fstp qword [esp]
call fcn.0064dd00
push 0xb8
call fcn.0065e5d0
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0xc8], 0
je 0x51d49f
sub esp, 0x18
lea edx, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0064dc70
sub esp, 0x18
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call fcn.0064dc70
mov ecx, edi
call fcn.004c79e0
mov edi, eax
jmp 0x51d4a1
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov ebx, dword [edi]
push 0
push 1
mov dword [esp + 0xd0], 0xffffffff
call fcn.004da3a0
push eax
mov ecx, edi
call dword [ebx + 0x124]
test eax, eax
je 0x51d6ef
mov edx, dword [edi]
push 0x3fe00000
lea eax, [esp + 0x94]
push 0
push eax
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x3c], edx
call fcn.004da3a0
mov ecx, dword [esi + 0x80]
mov edx, dword [eax]
test ecx, ecx
jne 0x51d564
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call dword [edx + 0xf0]
push eax
lea ecx, [esp + 0x4c]
call fcn.006578b0
fld qword [esp + 0x50]
fmul qword [0x69dca0]
push 0
push 0
sub esp, 8
fsubr qword [esp + 0x40]
fstp qword [esp]
fld qword [esp + 0x58]
fmul qword [0x69dca0]
fsubr qword [esp + 0x38]
jmp 0x51d5a4
lea ecx, [esp + 0xa8]
push ecx
mov ecx, eax
call dword [edx + 0xf4]
push eax
lea ecx, [esp + 0x4c]
call fcn.006578b0
fld qword [esp + 0x50]
fmul qword [0x69dca0]
push 0
push 0
sub esp, 8
fadd qword [esp + 0x40]
fstp qword [esp]
fld qword [esp + 0x58]
fmul qword [0x69dca0]
fadd qword [esp + 0x38]
sub esp, 8
lea ecx, [esp + 0x90]
fstp qword [esp]
call fcn.0064dd00
push 0xb8
call fcn.0065e5d0
mov ebx, eax
add esp, 4
mov dword [esp + 0x40], ebx
test ebx, ebx
mov dword [esp + 0xc8], 1
je 0x51d60a
sub esp, 0x18
lea edx, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0064dc70
sub esp, 0x18
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0064dc70
mov ecx, ebx
call fcn.004c79e0
jmp 0x51d60c
xor eax, eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [eax]
push 0
push 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x20], eax
call fcn.004da3a0
mov ecx, dword [esp + 0x1c]
push eax
call dword [ebx + 0x124]
test eax, eax
je 0x51d6ef
mov ebx, dword [edi]
sub esp, 0x18
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0064dc70
mov ecx, edi
call dword [ebx + 0x80]
mov ecx, dword [esp + 0x1c]
call fcn.004da3a0
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x68]
mov ecx, eax
mov eax, dword [esi + 0x80]
test eax, eax
mov dword [esp + 0x24], ecx
jne 0x51d68f
mov eax, dword [ecx]
push 0
push 0
push edi
call dword [eax + 0x124]
jmp 0x51d69c
mov edx, dword [ecx]
push 0
push 1
push edi
call dword [edx + 0x124]
test eax, eax
je 0x51d6ef
mov ecx, dword [esp + 0x20]
call fcn.004da3a0
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x68]
mov ebx, eax
mov eax, dword [esp + 0x44]
cmp eax, 1
mov dword [esp + 0x10], ebx
jne 0x51d6d6
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
push 0
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x124]
jmp 0x51d6e9
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
push 0
push 1
push eax
mov ecx, ebx
call dword [edx + 0x124]
test eax, eax
jne 0x51d744
jmp 0x51d6f3
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x51d700
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x51d70f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x51d71e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
test ebx, ebx
je 0x51d72b
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x7c]
push ebx
test eax, eax
jne 0x51d75c
call fcn.00490060
jmp 0x51d761
call fcn.004901c0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
cmp eax, 1
push ebx
jne 0x51d776
call fcn.00490060
jmp 0x51d77b
call fcn.004901c0
mov ecx, dword [ebp + 8]
push ecx
push edi
call fcn.004937b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51d7ef
push 2
mov ecx, ebx
call fcn.0048ee50
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x51d7a5
push 0
jmp 0x51d7a7
push 1
push 2
mov ecx, ebx
call fcn.0048ed30
mov ecx, dword [0x6fd2b0]
sub esp, 0xc
mov eax, esp
mov edx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [0x6fd2b4]
mov dword [eax + 4], ecx
mov ecx, dword [0x6fd2b8]
mov dword [eax + 8], ecx
mov ecx, ebx
call dword [edx + 0x3c]
mov eax, dword [esi + 0x7c]
mov edx, dword [ebx]
mov ecx, dword [eax + 0x30]
push ecx
mov ecx, ebx
call dword [edx + 0x5c]
mov ecx, dword [esi + 0x7c]
push ebx
call fcn.0048fd30
jmp 0x51d7fc
test edi, edi
je 0x51d7fc
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
push eax
push ebx
call fcn.004937b0
mov edi, eax
add esp, 8
test edi, edi
je 0x51d871
push 2
mov ecx, edi
call fcn.0048ee50
cmp dword [esp + 0x44], 1
jne 0x51d827
push 0
jmp 0x51d829
push 1
push 2
mov ecx, edi
call fcn.0048ed30
mov ecx, dword [0x6fd2b0]
sub esp, 0xc
mov eax, esp
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [0x6fd2b4]
mov dword [eax + 4], ecx
mov ecx, dword [0x6fd2b8]
mov dword [eax + 8], ecx
mov ecx, edi
call dword [edx + 0x3c]
mov ebx, dword [esp + 0xc]
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [ebx + 0x30]
push eax
call dword [edx + 0x5c]
push edi
mov ecx, ebx
call fcn.0048fd30
jmp 0x51d87e
test ebx, ebx
je 0x51d87e
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.004da3a0
test eax, eax
je 0x51d896
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov edx, dword [0x6fd2b0]
mov ebx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov eax, dword [ebx]
mov dword [ecx], edx
mov edx, dword [0x6fd2b4]
mov dword [ecx + 4], edx
mov edx, dword [0x6fd2b8]
mov dword [ecx + 8], edx
mov ecx, ebx
call dword [eax + 0x3c]
push ebx
mov ecx, edi
call fcn.004da3b0
mov ecx, dword [esi + 0x7c]
mov eax, dword [edi]
mov edx, dword [ecx + 0x30]
mov ecx, edi
push edx
call dword [eax + 0x5c]
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004da3a0
test eax, eax
je 0x51d8ee
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
jmp 0x51dd0a
call fcn.0048ed70
test eax, eax
je 0x51d914
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
test eax, eax
je 0x51d917
call fcn.0048ff00
jmp 0x51d91c
mov ecx, dword [esi + 0x7c]
call fcn.004fe620
fcomp qword [0x691f50]
fnstsw ax
test ah, 1
je 0x51d942
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x7c]
call fcn.0048fbe0
test eax, eax
jne 0x51d965
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x7c]
push 0
call fcn.0048fd00
test eax, eax
mov dword [esp + 0x18], eax
jne 0x51d98e
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x51d9a0
mov eax, dword [esi + 0x7c]
push 0
push eax
jmp 0x51d9a6
mov ecx, dword [esi + 0x7c]
push 1
push ecx
call fcn.00470a10
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0xc], edi
jne 0x51d9cf
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, edi
call fcn.0048fd00
test eax, eax
mov dword [esp + 0x20], eax
jne 0x51d9f7
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, eax
call fcn.004da3a0
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x68]
mov ebx, eax
push 1
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.004d8810
test eax, eax
mov eax, dword [ebx]
jne 0x51da2c
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push ecx
push edx
jmp 0x51da3a
fld qword [esi + 0x90]
sub esp, 8
fchs
fstp qword [esp]
mov ecx, ebx
call dword [eax + 0x13c]
mov ecx, dword [esp + 0x18]
mov ebx, eax
call fcn.004da3a0
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x68]
mov ecx, dword [esi + 0x7c]
mov edi, eax
push 1
mov dword [esp + 0x28], edi
call fcn.004d8810
test eax, eax
mov eax, dword [edi]
jne 0x51da7c
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
push ecx
push edx
jmp 0x51da8a
fld qword [esi + 0x98]
sub esp, 8
fchs
fstp qword [esp]
mov ecx, edi
call dword [eax + 0x13c]
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x10], eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00493970
mov edx, dword [esi + 0x80]
mov dword [esp + 0x14], eax
dec eax
push edx
push edi
push eax
push ebx
call fcn.005295d0
add esp, 0x10
test eax, eax
je 0x51db0b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x80]
dec eax
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.005295d0
add esp, 0x10
test eax, eax
je 0x51db0b
mov eax, dword [esi + 0x80]
mov edx, dword [esp + 0x10]
mov ecx, 1
sub ecx, eax
mov eax, 2
push ecx
push edx
sub eax, dword [esp + 0x1c]
push eax
push ebx
call fcn.005295d0
add esp, 0x10
test eax, eax
jne 0x51db5c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x51db1a
mov edx, dword [ecx]
push 1
call dword [edx + 4]
test ebx, ebx
je 0x51db27
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
test edi, edi
je 0x51db34
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x51db43
mov eax, dword [ecx]
push 1
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x80]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x7c]
push edi
test eax, eax
jne 0x51db74
call fcn.00490060
jmp 0x51db79
call fcn.004901c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
cmp eax, 1
push edi
jne 0x51db8e
call fcn.00490060
jmp 0x51db93
call fcn.004901c0
mov ecx, dword [ebp + 8]
push ecx
push ebx
call fcn.004937b0
mov edi, eax
add esp, 8
test edi, edi
je 0x51dc07
push 2
mov ecx, edi
call fcn.0048ee50
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x51dbbd
push 0
jmp 0x51dbbf
push 1
push 2
mov ecx, edi
call fcn.0048ed30
mov ecx, dword [0x6fd2b0]
sub esp, 0xc
mov eax, esp
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [0x6fd2b4]
mov dword [eax + 4], ecx
mov ecx, dword [0x6fd2b8]
mov dword [eax + 8], ecx
mov ecx, edi
call dword [edx + 0x3c]
mov eax, dword [esi + 0x7c]
mov edx, dword [edi]
mov ecx, dword [eax + 0x30]
push ecx
mov ecx, edi
call dword [edx + 0x5c]
mov ecx, dword [esi + 0x7c]
push edi
call fcn.0048fd30
jmp 0x51dc14
test ebx, ebx
je 0x51dc14
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
push eax
push ebx
call fcn.004937b0
mov edi, eax
add esp, 8
test edi, edi
je 0x51dc89
push 2
mov ecx, edi
call fcn.0048ee50
cmp dword [esp + 0x14], 1
jne 0x51dc3f
push 0
jmp 0x51dc41
push 1
push 2
mov ecx, edi
call fcn.0048ed30
mov ecx, dword [0x6fd2b0]
sub esp, 0xc
mov eax, esp
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [0x6fd2b4]
mov dword [eax + 4], ecx
mov ecx, dword [0x6fd2b8]
mov dword [eax + 8], ecx
mov ecx, edi
call dword [edx + 0x3c]
mov ebx, dword [esp + 0xc]
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [ebx + 0x30]
push eax
call dword [edx + 0x5c]
push edi
mov ecx, ebx
call fcn.0048fd30
jmp 0x51dc96
test ebx, ebx
je 0x51dc96
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004da3a0
test eax, eax
je 0x51dcae
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov edx, dword [0x6fd2b0]
mov ebx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov eax, dword [ebx]
mov dword [ecx], edx
mov edx, dword [0x6fd2b4]
mov dword [ecx + 4], edx
mov edx, dword [0x6fd2b8]
mov dword [ecx + 8], edx
mov ecx, ebx
call dword [eax + 0x3c]
push ebx
mov ecx, edi
call fcn.004da3b0
mov ecx, dword [esi + 0x7c]
mov eax, dword [edi]
mov edx, dword [ecx + 0x30]
mov ecx, edi
push edx
call dword [eax + 0x5c]
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004da3a0
test eax, eax
je 0x51dd06
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov edi, dword [esp + 0x1c]
mov edx, dword [0x6fd2b0]
sub esp, 0xc
mov ecx, esp
mov eax, dword [edi]
mov dword [ecx], edx
mov edx, dword [0x6fd2b4]
mov dword [ecx + 4], edx
mov edx, dword [0x6fd2b8]
mov dword [ecx + 8], edx
mov ecx, edi
call dword [eax + 0x3c]
push edi
mov ecx, esi
call fcn.004da3b0
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [ecx + 0x30]
mov ecx, esi
push edx
call dword [eax + 0x5c]
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4