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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x5101c9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x510da8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 8]
mov esi, eax
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push dword [eax + 0x34]
push dword [eax + 0x30]
mov eax, dword [0x5dcbe0]
mov eax, dword [eax]
mov eax, dword [eax + 0x158]
mov eax, dword [eax + 4]
call fcn.004ba540
push edx
push eax
call fcn.00441570
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x510dc4
call fcn.0042bd50
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510df0
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x34], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x78
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510df0
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x70]
add eax, 0x78
mov ecx, 0x320
mov edx, dword [ebp - 0x6c]
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea eax, [ebp - 0x84]
push eax
push ebp
lea eax, [ebp - 0xa0]
call fcn.00510080
pop ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00505df0
lea edx, [ebp - 0xa4]
call fcn.005a56f0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x40]
call fcn.004f4870
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
lea edx, [ebp - 0x9c]
mov eax, dword [0x5dd44c]
mov eax, dword [eax]
mov ecx, 2
call fcn.0044d210
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 0x14]
call fcn.0046c570
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, 3
add eax, 3
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x68]
sub ecx, 0x1a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
add edx, 3
mov eax, dword [ebp - 0x70]
call fcn.0040ae84
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e0c
mov dl, 1
mov eax, dword [0x46a050]
call fcn.00461f00
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x74]
add dword [ebp - 0x6c], 0x17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 8], 1
jge 0x5103d3
add dword [ebp - 0x6c], 0x28
jmp 0x510a6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x510a6d
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0x10]
call fcn.004297f0
mov dword [ebp - 0x30], eax
push 3
push 1
push 1
push 0x4a
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
inc edx
mov ecx, 0x4a
mov eax, dword [ebp - 0x70]
call fcn.0042b020
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x30]
call fcn.005059d0
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.0057e740
mov dword [ebp - 0x28], eax
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e20
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x44], 4
jne 0x510935
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 2
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x320
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e3c
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x2c], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x16
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x1f4
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x30]
call fcn.00505a00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x48], 0
jne 0x510513
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x24]
call fcn.0041cd80
cmp dword [ebp - 0xac], 0
jne 0x510675
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e58
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x40], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x33
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0xc8
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 4]
lea edx, [ebp - 0xb0]
mov eax, dword [0x5dd05c]
mov eax, dword [eax]
call fcn.0044d190
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e74
mov dl, 1
mov eax, dword [0x50eb60]
call fcn.00461f00
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 4]
mov dword [eax + 0x80], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x84], ecx
lea edx, [ebp - 0xb4]
mov eax, dword [0x5dccec]
mov eax, dword [eax]
call fcn.0044d190
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0x19
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x32
mov eax, dword [ebp - 0x70]
add eax, 0x118
mov ecx, 0x12c
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x74]
push 0x510e8c
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x48]
call fcn.0041d248
push dword [ebp - 0xbc]
push 0x510ebc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebp - 0xc0]
call fcn.0041d270
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0xb8]
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f790
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x50fdb0
jmp 0x51099b
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e58
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x40], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x33
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x3c
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 4]
lea edx, [ebp - 0xc4]
mov eax, dword [0x5dd4b0]
mov eax, dword [eax]
call fcn.0044d190
lea eax, [ebp - 0xc4]
mov edx, 0x510ed4
call fcn.004073ac
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [0x5dd4d4]
mov eax, dword [eax]
mov edx, 0x510ee4
call fcn.00461d40
mov dword [ebp - 0x5c], eax
mov ax, word [0x510eec]
push eax
mov eax, dword [ebp - 0x5c]
mov edx, 0x1f4
sub edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x5c]
sub edx, dword [eax + 0x4c]
push edx
push 0x7fffffff
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x24]
call fcn.00457fb0
cmp dword [ebp - 0xc8], 0x14
setg byte [ebp - 0x51]
cmp byte [ebp - 0x51], 0
jne 0x51075d
mov edx, dword [ebp - 0x24]
mov eax, 0x510efc
call fcn.00407740
test eax, eax
jle 0x5107cd
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510ee4
mov dl, 1
mov eax, dword [0x469668]
call fcn.00461f00
mov dword [ebp - 0x3c], eax
push 0x31
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x29
mov eax, dword [ebp - 0x70]
add eax, 0x55
add eax, 0x2c
mov ecx, 0x1f4
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
call fcn.0046ff40
lea ecx, [ebp - 0xcc]
xor edx, edx
xor eax, eax
call fcn.0040aeb4
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x3c]
call fcn.0046f920
add dword [ebp - 0x6c], 0xa
jmp 0x51081a
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510ee4
mov dl, 1
mov eax, dword [0x469530]
call fcn.00461f00
mov dword [ebp - 0x3c], eax
push 0x16
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x32
mov eax, dword [ebp - 0x70]
add eax, 0x55
add eax, 0x2c
mov ecx, 0x1f4
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
call fcn.0046ff40
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 0x3c]
add eax, 4
mov edx, 0x510f0c
call fcn.004069d4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e74
mov dl, 1
mov eax, dword [0x468af0]
call fcn.00461f00
mov dword [ebp - 0x4c], eax
push 0x19
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
add eax, 0xa
mov ecx, 0x78
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd0]
mov eax, dword [0x5dd058]
mov eax, dword [eax]
call fcn.0044d190
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x50fed0
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e74
mov dl, 1
mov eax, dword [0x50e4bc]
call fcn.00461f00
mov dword [ebp - 0x48], eax
push 0x19
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x14]
sub edx, 0x1d
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
add eax, 0xa
mov ecx, 0x78
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd4]
mov eax, dword [0x5dd154]
mov eax, dword [eax]
call fcn.0044d190
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x510000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 4]
mov dword [eax + 0x78], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x7c], ecx
jmp 0x51099b
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 8
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x320
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e3c
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x2c], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x23
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x1f4
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.0046c570
lea edx, [ebp - 0xdc]
mov eax, dword [0x5dca38]
mov eax, dword [eax]
call fcn.0044d190
push dword [ebp - 0xdc]
push 0x510f38
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
call fcn.005a56f0
push dword [ebp - 0xe0]
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.0040748c
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 4]
add dword [ebp - 0x6c], 0x50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 8]
dec eax
cmp eax, dword [ebp - 0x10]
jle 0x510a61
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510e0c
mov dl, 1
mov eax, dword [0x46a050]
call fcn.00461f00
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
sub eax, 0
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x68]
sub ecx, 0xb4
mov edx, dword [ebp - 0x6c]
sub edx, 3
mov eax, dword [ebp - 0x70]
call fcn.0040ae84
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x60]
mov byte [eax + 0x22], 1
inc dword [ebp - 0x10]
dec dword [ebp - 0x58]
jne 0x5103f0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x44], 4
jne 0x510aaa
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510f4c
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x18], eax
jmp 0x510ce4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510f64
mov dl, 1
mov eax, dword [0x5c62c8]
call fcn.00461f00
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xe8]
mov eax, dword [0x5dc9fc]
mov eax, dword [eax]
call fcn.0044d190
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.00428260
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0xe
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042afc0
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
sub eax, 0x41
mov ecx, 0x3c
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], fcn.00510030
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xec]
mov eax, dword [0x5dcb34]
mov eax, dword [eax]
call fcn.0044d190
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.004069d4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510f64
mov dl, 1
mov eax, dword [0x5c62c8]
call fcn.00461f00
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xf4]
mov eax, dword [0x5dce40]
mov eax, dword [eax]
call fcn.0044d190
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.00428260
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0xe
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042afc0
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
add eax, 5
mov ecx, 0x3c
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x50fd80
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xf8]
mov eax, dword [0x5dcfbc]
mov eax, dword [eax]
call fcn.0044d190
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.004069d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
sub eax, 2
jne 0x510ccc
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510f7c
mov dl, 1
mov eax, dword [0x5c62c8]
call fcn.00461f00
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x510050
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
call fcn.0050ecb0
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0x28
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042afc0
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
jmp 0x510ce4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510f94
mov dl, 1
mov eax, dword [0x468ef4]
call fcn.00461f00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x510d53
push 0x28
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042afc0
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042b020
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
call fcn.0050ecb0
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
add eax, 0xf
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510daf
lea eax, [ebp - 0x100]
mov edx, 0xd
call fcn.00406670
lea eax, [ebp - 0xc4]
mov edx, 0xa
call fcn.00406670
lea eax, [ebp - 0x84]
call fcn.00406610
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406670
ret