Function at 0x514b10
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 0x514b19
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 0x5156f8
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 [0x59f944]
mov eax, dword [eax]
mov eax, dword [eax + 0x150]
mov eax, dword [eax + 4]
call fcn.004a5840
push edx
push eax
call fcn.00437fa0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x515714
call fcn.0042b100
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x515740
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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.0042a430
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, 0x515740
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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.0042a430
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.005149d0
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.004db020
lea edx, [ebp - 0xa4]
call fcn.0056d6d0
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.004bfc50
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
lea edx, [ebp - 0x9c]
mov eax, dword [0x5a00ec]
mov eax, dword [eax]
mov ecx, 2
call fcn.00443500
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.00460cb0
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.0040ae44
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51575c
mov dl, 1
mov eax, dword [0x45e808]
call fcn.00456770
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 0x514d23
add dword [ebp - 0x6c], 0x28
jmp 0x5153bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5153bd
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.00428dd0
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.0042a430
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004dac00
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.0054ced0
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, 0x515770
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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 0x515285
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.0042a430
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, 0x51578c
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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.0042a430
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.004dac30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x48], 0
jne 0x514e63
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x24]
call fcn.0041cbcc
cmp dword [ebp - 0xac], 0
jne 0x514fc5
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5157a8
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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.0042a430
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 [0x59fd58]
mov eax, dword [eax]
call fcn.00443480
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, 0x5157c4
mov dl, 1
mov eax, dword [0x5134a8]
call fcn.00456770
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 [0x59fa4c]
mov eax, dword [eax]
call fcn.00443480
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.0042a430
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x74]
push 0x5157dc
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x48]
call fcn.0041d048
push dword [ebp - 0xbc]
push 0x51580c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebp - 0xc0]
call fcn.0041d070
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.00407478
mov edx, dword [ebp - 0xb8]
mov eax, dword [0x59f8a8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00436230
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x514700
jmp 0x5152eb
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5157a8
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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.0042a430
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 [0x5a0144]
mov eax, dword [eax]
call fcn.00443480
lea eax, [ebp - 0xc4]
mov edx, 0x515824
call fcn.00407398
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [0x5a0160]
mov eax, dword [eax]
mov edx, 0x515834
call fcn.00456420
mov dword [ebp - 0x5c], eax
mov ax, word [0x51583c]
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.0044cbd0
cmp dword [ebp - 0xc8], 0x14
setg byte [ebp - 0x51]
cmp byte [ebp - 0x51], 0
jne 0x5150ad
mov edx, dword [ebp - 0x24]
mov eax, 0x51584c
call fcn.0040772c
test eax, eax
jle 0x51511d
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x515834
mov dl, 1
mov eax, dword [0x45de28]
call fcn.00456770
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.0042a430
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.004645d0
lea ecx, [ebp - 0xcc]
xor edx, edx
xor eax, eax
call fcn.0040ae74
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x3c]
call fcn.00464040
add dword [ebp - 0x6c], 0xa
jmp 0x51516a
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x515834
mov dl, 1
mov eax, dword [0x45dcf0]
call fcn.00456770
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.0042a430
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.004645d0
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 0x3c]
add eax, 4
mov edx, 0x51585c
call fcn.00406970
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5157c4
mov dl, 1
mov eax, dword [0x45d2b0]
call fcn.00456770
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.0042a430
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd0]
mov eax, dword [0x59fd54]
mov eax, dword [eax]
call fcn.00443480
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], 0x514820
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5157c4
mov dl, 1
mov eax, dword [0x512e0c]
call fcn.00456770
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.0042a430
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd4]
mov eax, dword [0x59fe38]
mov eax, dword [eax]
call fcn.00443480
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], 0x514950
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 0x5152eb
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.0042a430
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, 0x51578c
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
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.0042a430
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.00460cb0
lea edx, [ebp - 0xdc]
mov eax, dword [0x59f7d0]
mov eax, dword [eax]
call fcn.00443480
push dword [ebp - 0xdc]
push 0x515888
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
call fcn.0056d6d0
push dword [ebp - 0xe0]
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.00407478
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 0x5153b1
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51575c
mov dl, 1
mov eax, dword [0x45e808]
call fcn.00456770
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.0040ae44
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 0x514d40
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 0x5153fa
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51589c
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
mov dword [ebp - 0x18], eax
jmp 0x515634
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5158b4
mov dl, 1
mov eax, dword [0x589ed4]
call fcn.00456770
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xe8]
mov eax, dword [0x59f794]
mov eax, dword [eax]
call fcn.00443480
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.00427ad0
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.0042a3d0
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
sub eax, 0x41
mov ecx, 0x3c
call fcn.0042a430
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.00514980
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xec]
mov eax, dword [0x59f8b0]
mov eax, dword [eax]
call fcn.00443480
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.00406970
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5158b4
mov dl, 1
mov eax, dword [0x589ed4]
call fcn.00456770
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xf4]
mov eax, dword [0x59fb74]
mov eax, dword [eax]
call fcn.00443480
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.00427ad0
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.0042a3d0
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
add eax, 5
mov ecx, 0x3c
call fcn.0042a430
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], 0x5146d0
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xf8]
mov eax, dword [0x59fccc]
mov eax, dword [eax]
call fcn.00443480
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.00406970
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
sub eax, 2
jne 0x51561c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5158cc
mov dl, 1
mov eax, dword [0x589ed4]
call fcn.00456770
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x5149a0
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
call fcn.00513600
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.0042a3d0
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042a430
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
jmp 0x515634
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5158e4
mov dl, 1
mov eax, dword [0x45d6b4]
call fcn.00456770
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5156a3
push 0x28
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042a3d0
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042a430
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.00513600
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 0x5156ff
lea eax, [ebp - 0x100]
mov edx, 0xd
call fcn.0040660c
lea eax, [ebp - 0xc4]
mov edx, 0xa
call fcn.0040660c
lea eax, [ebp - 0x84]
call fcn.004065ac
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040660c
ret