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

Disassembly:
sub esp, 0x180
push ebx
mov ebx, dword [esp + 0x188]
lea eax, [esp + 0x2c]
push ebp
push esi
push 0x144
mov ebp, dword [ebx + 0xc]
xorps xmm0, xmm0
push 0
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
movlpd qword [esp + 0x184], xmm0
movlpd qword [esp + 0x18c], xmm0
call fcn.005234c0
movzx edx, word [ebx + 0x6e]
lea ecx, [ebx + 0x70]
movzx eax, word [ebx + 0x6c]
add esp, 0xc
imul eax, edx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x90], ebp
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x194]
mov eax, ecx
mov dword [esp + 0x188], edx
shr eax, 8
and ecx, 0xfffffeff
and eax, 1
mov dword [esp + 0x194], ecx
mov dword [esp + 0x154], eax
lea eax, [ebp + 0x100]
mov dword [esp + 0x8c], eax
xor eax, eax
cmp word [ebx + 0x66], ax
mov dword [esp + 0x3c], edx
sete al
mov dword [esp + 0x94], ecx
cmp word [ebx + 0x64], 0
mov dword [esp + 0x9c], eax
ja 0x51502d
test dword [ebx + 0x48], 0x2000
jne 0x51502d
xor eax, eax
jmp 0x515032
mov eax, 1
mov dword [esp + 0x98], eax
xor esi, esi
movzx eax, word [ebx + 0x62]
dec eax
mov dword [esp + 0xb8], esi
cmp eax, 5
ja case.default.0x515050
jmp dword [eax*4 + 0x516558]
mov dword [esp + 0xc4], 0xd
jmp 0x5150b7
mov dword [esp + 0xc4], 0xa
jmp 0x5150b7
mov dword [esp + 0xc4], 0xd0a
jmp 0x5150b7
mov esi, 1
mov dword [esp + 0xc4], 0xd0a
mov dword [esp + 0xb8], esi
jmp 0x5150b7
mov esi, 2
mov dword [esp + 0xc4], 0xd0a
mov dword [esp + 0xb8], esi
jmp 0x5150b7
mov dword [esp + 0xc4], esi
movzx ecx, word [ebx + 0x60]
mov dword [esp + 0xbc], 0x7fffffff
mov dword [esp + 0xc0], 0
push edi
cmp ecx, 1
jne 0x5150e2
mov edi, ecx
mov dword [esp + 0xcc], edi
jmp 0x5150f8
xor eax, eax
cmp ecx, 2
sete al
inc eax
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 0xcc], eax
mov ecx, dword [ebx + 0x40]
mov eax, ecx
shr eax, 4
and eax, 1
mov dword [esp + 0xd0], 0x7fffffff
mov dword [esp + 0xd8], eax
lea eax, [ebp + 0x340]
mov dword [esp + 0xdc], eax
movzx eax, word [ebx + 0x6e]
mov dword [esp + 0xe4], eax
movzx eax, word [ebx + 0x6c]
mov dword [esp + 0xe8], eax
mov eax, ecx
shr eax, 9
and eax, 1
mov dword [esp + 0xd4], 0
mov dword [esp + 0x14c], eax
mov eax, ecx
shr eax, 0x15
and eax, 1
mov dword [esp + 0x150], eax
mov eax, ecx
shr eax, 0x13
and eax, 1
mov dword [esp + 0x154], eax
mov eax, ecx
shr eax, 0x11
and eax, 1
mov dword [esp + 0x15c], eax
test ecx, 0x80000
je 0x5151f6
cmp esi, 1
jne 0x515199
mov dword [esp + 0xc0], 0x2029
jmp 0x5151c7
cmp esi, 2
jne 0x5151ab
mov dword [esp + 0xc0], 0xd
jmp 0x5151c7
mov eax, dword [esp + 0xc8]
movzx eax, al
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
test esi, esi
je 0x5151d2
mov dword [esp + 0xc4], 0xa
cmp edi, 1
mov dword [esp + 0xd4], 0xa
mov eax, 0xd
mov ecx, 0x2029
cmove eax, ecx
mov dword [esp + 0xd0], eax
jmp 0x515201
mov dword [esp + 0x158], 0
movzx eax, word [edx + 2]
cmp word [edx + eax*2], 0x78
lea edx, [edx + eax*2]
je 0x515201
movzx eax, word [ebx + 0x68]
lea edi, [edx + 4]
push dword [ebx + 8]
inc eax
mov dword [esp + 0x28], edi
push eax
mov eax, dword [ebx]
mov dword [esp + 0x64], 0x14
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x5154bb
movzx eax, word [ebx + 0x68]
inc eax
push eax
push 1
push ecx
call fcn.005234c0
push edi
push dword [esp + 0x50]
lea eax, [esp + 0x4c]
push eax
call fcn.004fe9f0
add esp, 0x18
test eax, eax
je 0x515365
mov edx, dword [esp + 0x198]
cmp edx, 1
jne 0x51528f
test byte [ebx + 0x48], 0x80
je 0x515289
test dword [ebx + 0x40], 0x10000
jne 0x515289
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
jmp 0x5152a7
mov ecx, dword [esp + 0x5c]
jmp 0x5152ae
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
lea ecx, [eax + 4]
mov dword [esp + 0x5c], ecx
cmp edx, 2
jne 0x5152ae
mov dword [esp + 0x70], ecx
add ecx, 4
mov dword [esp + 0x5c], ecx
test dword [ebx + 0x40], 0x800100
je 0x5152c2
mov dword [esp + 0x74], ecx
add ecx, 4
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x7c], 0
je 0x5152d4
mov dword [esp + 0x7c], ecx
add ecx, 4
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0xa4], 0
je 0x5152e9
mov eax, ecx
add ecx, 4
mov dword [esp + 0x5c], ecx
jmp 0x5152ed
mov eax, dword [esp + 0x60]
mov edx, ecx
test cl, 4
je 0x5152fd
lea ecx, [edx + 4]
mov dword [esp + 0x5c], ecx
mov edx, ecx
test eax, eax
cmove eax, edx
cmp dword [esp + 0x80], 0
mov dword [esp + 0x60], eax
je 0x515328
movzx eax, word [ebx + 0x68]
inc eax
push eax
push 0
push dword [esp + 0x54]
call fcn.005234c0
mov ecx, dword [esp + 0x68]
add esp, 0xc
movzx eax, word [ebx + 0x68]
mov ebp, edi
sub ebp, dword [esp + 0x40]
inc eax
push dword [ebx + 8]
sar ebp, 1
mov dword [esp + 0x1c], ebp
lea eax, [ecx + eax*8]
mov dword [esp + 0x5c], eax
xor eax, eax
cmp dword [esp + 0xb0], eax
setne al
add eax, 4
imul eax, ebp
push eax
mov eax, dword [ebx]
call eax
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
jne 0x515384
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [esp + 0x50]
call eax
add esp, 8
mov eax, 0xffffffd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
lea esi, [ebp*4]
push esi
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.005234c0
movzx ecx, word [ebx + 0x68]
mov eax, dword [esp + 0x64]
push edi
lea eax, [eax + ecx*4]
add eax, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.005197c0
mov edi, dword [esp + 0x5c]
add esp, 0x18
test dword [ebx + 0x40], 0x80010000
jne 0x515499
mov ebp, dword [esp + 0x40]
mov esi, ebp
mov edx, 0x88
nop dword [eax]
movzx ecx, word [esi]
lea eax, [ecx - 1]
cmp eax, 0x1b
ja case.0x5153f2.6
movzx eax, byte [eax + 0x516578]
jmp dword [eax*4 + 0x516570]
add esi, 2
jmp 0x5153e0
mov eax, 0x86
cmp cx, ax
je 0x51540d
cmp cx, dx
jne 0x515445
movzx eax, word [esi + 2]
cmp word [esi + eax*2], 0x79
lea eax, [esi + eax*2]
jne 0x51546e
sub eax, ebp
sar eax, 1
cmp dword [edi + eax*4], 0
jne 0x51546e
mov eax, 0x88
cmp cx, ax
jne 0x515440
movzx eax, word [esi + 4]
mov ecx, dword [esp + 0x4c]
cmp byte [eax + ecx], 0
je 0x51546e
add esi, 2
add esi, 4
jmp 0x5153d4
push esi
call fcn.00514e50
add esp, 4
test eax, eax
je 0x51546e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], esi
sub esi, ebp
add esi, 2
sar esi, 1
mov dword [edi + esi*4], eax
add dword [esp + 0x14], 4
jmp 0x51548d
cmp dword [esp + 0xb0], 0
jne 0x515491
push 4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.0050d380
add esp, 0x10
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0x10000
jle 0x5154cb
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push edi
call eax
push dword [ebx + 8]
push dword [esp + 0x58]
mov eax, dword [ebx + 4]
call eax
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0xffffffd0
pop ebx
add esp, 0x180
ret
cmp dword [esp + 0xac], 0
je 0x5154f8
push ebp
lea eax, [esi + edi]
push 0
push eax
mov dword [esp + 0x5c], eax
call fcn.005234c0
push 0
push dword [esp + 0x50]
lea eax, [esp + 0x4c]
push eax
call fcn.00519b00
add esp, 0x18
push dword [ebx + 8]
mov eax, dword [ebx]
push 0x64
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x516530
push 0x64
push 0
push edi
call fcn.005234c0
mov dword [edi + 0x28], ebx
push dword [ebx + 8]
mov eax, dword [ebx]
push 0x1000
call eax
mov dword [edi + 0x2c], eax
push dword [ebx + 8]
mov eax, dword [ebx]
push 0x800
call eax
mov ecx, eax
add esp, 0x1c
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x30], ecx
test eax, eax
je 0x516511
test ecx, ecx
je 0x516505
cmp dword [0x88cdbc], 0
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax + 4], 0
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
jne 0x5155e7
mov eax, 0x88cdcf
mov dword [0x88cdbc], 1
and eax, 0xfffffff0
mov dword [0x88ce0c], eax
mov dword [eax], 0x80000000
mov dword [eax + 0x10], 0x7fffffff
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0x80000000
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0x7fffffff
push dword [esp + 0x14]
mov dword [esp + 0x3c], edi
push 0
push 0
push 5
push 5
push 0x10
push 0
push edi
call fcn.00519f20
movzx eax, word [ebx + 0x68]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00518aa0
mov eax, dword [esp + 0x8c]
add esp, 0x28
test eax, eax
je 0x51563a
push 0
push 1
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
push 0
push 0xc
push 0
push 8
push 0x20
push edi
call fcn.0051a810
push 0
push 0xc
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 4
push 0x81
push 0
push 2
push 0x20
push edi
call fcn.0051a810
add esp, 0x48
push 0xc
push 0x81
push 0
push 0xc
push 0x20
push edi
call fcn.0051a810
push 0
push 0x81
push 0
push 3
push 0x20
push edi
call fcn.0051a810
add esp, 0x30
cmp dword [edi], 0
jne 0x5156b2
push 0x28
push 0x81
push 0
push 1
push edi
call fcn.0050f720
add esp, 0x14
push 4
push 0x83
push 0
push 0xb
push 0x20
push edi
call fcn.0051a810
push 8
push 0x83
push 0
push 0xa
push 0x20
push edi
call fcn.0051a810
push 1
push 0x40
push 0
push 1
push 0
push 1
push 0x60
push edi
call fcn.0051aaf0
add esp, 0x50
push 0
push 1
push 0x10
push 0x8d
push 0x20
push edi
call fcn.0051a810
mov eax, dword [esp + 0xa0]
add esp, 0x18
cmp eax, dword [esp + 0x8c]
jge 0x51576e
mov ebp, dword [esp + 0x38]
push 2
push 0x40
push 0
push 2
push 0
push 1
push 0x62
push ebp
call fcn.0051aaf0
mov esi, dword [esp + 0xa8]
add esp, 0x20
mov eax, dword [esp + 0x8c]
cmp esi, eax
jge 0x51576e
cmp dword [ebp], 0
jne 0x515767
mov eax, dword [ebp + 0x58]
push 0
push 1
add eax, esi
push eax
push 0x8d
push ebp
call fcn.0050f720
mov eax, dword [esp + 0xa0]
add esp, 0x14
add esi, 4
cmp esi, eax
jl 0x515742
mov esi, dword [esp + 0x198]
cmp esi, 2
jne 0x515792
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x78]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5157af
push 0
push 0x40
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5157cc
push 0
push 0x40
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
cmp dword [ebx + 0x40], 0
jl 0x5158c0
lea eax, [esp + 0x38]
push eax
call fcn.00516700
push edi
mov dword [esp + 0x34], eax
call fcn.0051a7a0
add esp, 8
mov dword [esp + 0x10], eax
test dword [ebx + 0x40], 0x10000
jne 0x5158cd
cmp esi, 1
jne 0x515818
lea eax, [esp + 0x38]
push eax
call fcn.00512960
add esp, 4
test eax, eax
jne 0x5158d2
mov eax, dword [ebx + 0x48]
test al, 0x10
je 0x51589d
mov eax, dword [esp + 0x3c]
test byte [eax + 0x48], 0x20
movzx ecx, word [eax + 0x58]
mov esi, ecx
mov edx, ecx
je 0x515883
mov ebp, esi
mov eax, 0xff
and ebp, 0x7f
cmp cx, ax
ja 0x51584b
mov eax, dword [esp + 0x90]
movzx edx, byte [esi + eax]
cmp ecx, 0x7f
jbe 0x515883
cmp dword [esp + 0x154], 0
je 0x515883
shr esi, 7
movzx eax, word [esi*2 + 0x84aa30]
shl eax, 7
add eax, ebp
movzx eax, word [eax*2 + 0x84ee30]
lea eax, [eax + eax*2]
mov ax, word [eax*4 + 0x847d3c]
add ax, cx
movzx edx, ax
push 0
push edx
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.00512620
mov esi, dword [esp + 0x1a8]
add esp, 0x10
jmp 0x5158cd
test eax, 0x200
je 0x5158b0
lea eax, [esp + 0x38]
push eax
call fcn.00513470
jmp 0x5158ca
test al, 0x40
je 0x5158cd
lea eax, [esp + 0x38]
push eax
call fcn.00513990
jmp 0x5158ca
push edi
call fcn.0051a7a0
mov dword [esp + 0x14], eax
add esp, 4
cmp esi, 1
jne 0x515922
cmp word [ebx + 0x66], 0
jbe 0x515922
test dword [ebx + 0x40], 0x10000
jne 0x515922
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0051a810
movzx eax, word [ebx + 0x66]
add eax, eax
push eax
push 0x40
push 0
push 2
push 0
push 3
push 0x60
push edi
call fcn.0051aaf0
push 0
push 0xc
push 0
push 3
push 4
push edi
call fcn.00519da0
add esp, 0x50
mov ebp, eax
jmp 0x515924
xor ebp, ebp
cmp dword [esp + 0x64], 0
je 0x515954
mov edx, dword [ebx + 0x48]
mov ecx, edx
movzx eax, word [ebx + 0x5c]
shr ecx, 4
and ecx, 1
shr edx, 8
push ecx
and edx, 1
push edx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.005194d0
add esp, 0x10
mov dword [esp + 0x1c], eax
push 0
push 2
push dword [esp + 0x64]
push 0x8d
push 0x20
push edi
call fcn.0051a810
push 0x10
push 0x8d
push 0
push 9
push 0x20
push edi
call fcn.0051a810
mov eax, dword [esp + 0xb0]
add esp, 0x30
test eax, eax
je 0x51599f
push 0
push 0x40
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x5159ce
sub ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add ecx, 2
push 0
sar ecx, 1
push 2
push dword [eax + ecx*4]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x5c]
je 0x5159ed
push 0
push 2
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
cmp esi, 2
jne 0x515a3a
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x78]
push 0x8d
push 1
push edi
call fcn.00519da0
push 0
push 2
push dword [esp + 0x8c]
mov esi, eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
push edi
call fcn.0051a7a0
push eax
push esi
call fcn.0051bb30
mov esi, dword [esp + 0x1d4]
add esp, 0x3c
jmp 0x515a57
cmp esi, 4
jne 0x515a57
push 0
push 2
push dword [esp + 0x74]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
lea eax, [esp + 0x17c]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push dword [esp + 0x48]
push eax
call fcn.00507350
add esp, 0x10
cmp dword [edi], 0
jne 0x51643d
test dword [ebx + 0x40], 0x20000000
je 0x515a9d
push 0
push 0xc
push 0
push 2
push 1
push edi
call fcn.00519da0
add esp, 0x18
mov dword [esp + 0x28], eax
cmp dword [esp + 0xa0], 0
je 0x515acd
push dword [esp + 0x5c]
push 0x8d
push 0
push 2
push 0
push edi
call fcn.00519da0
push edi
mov dword [esp + 0x4c], eax
call fcn.0051a7a0
add esp, 0x1c
mov dword [esp + 0x20], eax
push edi
call fcn.0051a7a0
mov ecx, dword [esp + 0x124]
add esp, 4
mov dword [esp + 0xf8], eax
test ecx, ecx
je 0x515af2
push eax
push ecx
call fcn.00519780
add esp, 8
movzx eax, word [ebx + 0x68]
inc eax
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0050c350
push edi
call fcn.0051a7a0
mov ecx, dword [esp + 0x11c]
add esp, 0xc
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], eax
test ecx, ecx
je 0x515b35
push eax
push ecx
call fcn.00519780
mov eax, dword [esp + 0xfc]
add esp, 8
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x515b51
push eax
push ecx
call fcn.00519780
mov eax, dword [esp + 0xfc]
add esp, 8
test ebp, ebp
je 0x515b5f
push eax
push ebp
call fcn.0051bb30
add esp, 8
push 0
push 1
push 0x20
push edi
call fcn.0051b340
add esp, 0x10
cmp dword [esp + 0x11c], 0
je 0x515bb9
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x124]
call fcn.00519780
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x24
push dword [esp + 0xf4]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
add esp, 8
test dword [ebx + 0x40], 0x20000000
je 0x515bd5
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x30]
call fcn.0051bb30
add esp, 0xc
cmp esi, 1
je 0x515c08
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x114]
mov dword [esp + 0xf8], eax
call fcn.00519780
push dword [esp + 0xfc]
lea eax, [esp + 0x48]
push eax
call fcn.00518c10
add esp, 0x14
cmp dword [esp + 0xa0], 0
je 0x515c1f
push edi
call fcn.0051a7a0
add esp, 4
mov dword [esp + 0x34], eax
push dword [esp + 0x184]
lea eax, [esp + 0x3c]
push eax
call fcn.005009c0
add esp, 8
cmp dword [edi], 0
push edi
jne 0x51643e
call fcn.0051a7a0
add esp, 4
mov ebp, eax
cmp esi, 2
jne 0x515cbf
push 0
push 0x40
push dword [esp + 0x78]
push 0x8d
push 1
push edi
call fcn.00519da0
push dword [esp + 0x78]
mov esi, eax
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 0xffffffffffffffff
push 0x40
push dword [esp + 0xa4]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x48
push 0
push 1
push dword [esp + 0x78]
push 0x8d
push 0x20
push edi
call fcn.0051a810
push edi
call fcn.0051a7a0
push eax
push esi
call fcn.0051bb30
mov esi, dword [esp + 0x1bc]
add esp, 0x24
cmp dword [ebx + 0x40], 0
jl 0x515ce2
mov eax, dword [esp + 0x74]
test eax, eax
je 0x515ce2
push eax
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x515cff
sub ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add ecx, 2
sar ecx, 1
mov eax, dword [eax + ecx*4]
jmp 0x515d03
mov eax, dword [esp + 0x60]
push eax
push 0x8d
push 0
push 2
push 0x20
push edi
call fcn.0051a810
mov ecx, dword [ebx + 0x40]
add esp, 0x18
test ecx, ecx
js 0x515dd1
mov eax, dword [esp + 0xfc]
test eax, eax
je 0x515da0
test ecx, 0x100
jne 0x515dd1
cmp dword [esp + 0x74], 0
je 0x515d99
push 0
push 0xc
push 0
push 4
push 0x20
push edi
call fcn.0051a810
push 0
push 1
push 0
push 0xc
push 0x20
push edi
call fcn.0051a810
add esp, 0x30
push dword [esp + 0xfc]
push 0
push 1
push 0
push 2
push 2
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
push 0
push 4
push 0
push 0xc
push 0x20
push edi
call fcn.0051a810
add esp, 0x20
jmp 0x515dd1
push eax
push 0
push 0xc
jmp 0x515db9
push dword [esp + 0x2c]
cmp dword [esp + 0x78], 0
mov eax, 1
mov ecx, 0xc
push 0
cmove eax, ecx
push eax
push 0
push 2
push 2
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x515deb
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x24]
call fcn.0051bb30
add esp, 0xc
cmp esi, 2
jne 0x515e18
push dword [esp + 0xec]
push 0xffffffffffffffff
push 0x40
push dword [esp + 0x7c]
push 0x8d
push 1
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
add esp, 8
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
push dword [esp + 0xf0]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
lea eax, [esp + 0x40]
push eax
call fcn.00513c90
add esp, 0xc
cmp dword [esp + 0xa0], 0
je 0x515f44
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x38]
call fcn.0051bb30
push 0
push 8
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x24
cmp dword [edi], 0
jne 0x515e9a
push 0x30
push 0x81
push 0
push 3
push edi
call fcn.0050f720
add esp, 0x14
push 4
push 0x40
push 0
push 3
push 0
push 0
push 0x265
push edi
call fcn.0051aaf0
mov esi, dword [esp + 0x54]
add esp, 0x20
push esi
push 1
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
push 8
push 0x40
push 0
push 3
push 0
push 0
push 0x265
push edi
call fcn.0051aaf0
add esp, 0x28
push dword [esp + 0x20]
push 0
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
push 4
push 0x81
push 0
push 3
push 0x20
push edi
call fcn.0051a810
add esp, 0x20
push dword [esp + 0x20]
push 0
push 2
push 0
push 3
push 1
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
add esp, 8
push esi
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
add esp, 8
mov eax, dword [esp + 0x104]
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0xb4], 1
test eax, eax
je 0x515fc7
nop dword [eax]
lea eax, [esp + 0x38]
push eax
call fcn.00507b60
add esp, 4
cmp dword [edi], 0
jne 0x51643d
lea eax, [esp + 0x38]
push eax
call fcn.00513c90
mov eax, dword [esp + 0x10c]
add esp, 4
mov eax, dword [eax]
mov dword [esp + 0x108], eax
test eax, eax
jne 0x515f90
push edi
mov dword [esp + 0xb8], 0
mov dword [esp + 0xf4], esi
call fcn.0051a7a0
push eax
push dword [esp + 0x130]
call fcn.00519780
push 0
push 0x8d
push edi
call fcn.0051a300
push 0
push 2
push 4
push 0x8d
push 0x20
push edi
call fcn.0051a810
push 0
push 8
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x48
push 0x2000
push 0x40
push 0
push 0xa
push 0
push 2
push 0x62
push edi
call fcn.0051aaf0
push 0
push 0x81
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 0
push 3
push 0
push 0xa
push 0x20
push edi
call fcn.0051a810
add esp, 0x50
push fcn.004fda00
push 0x40
push 0x111
push 0x1a
push edi
call fcn.0051a490
push 0
push 0x40
push 0
push 1
push 0
push edi
call fcn.00519da0
push 0
push 0xa
push 0
push 3
push 0x20
push edi
mov esi, eax
call fcn.0051a810
add esp, 0x44
push 0
push 1
push 0
push 0xa
push 0x20
push edi
call fcn.0051a810
push 0
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 4
push 0x8d
push 0
push 2
push 0x20
push edi
call fcn.0051a810
add esp, 0x48
push 0
push 1
push edi
call fcn.0051a3c0
push edi
call fcn.0051a7a0
push eax
push esi
call fcn.0051bb30
push 0xffffffffffffffd2
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x30
push dword [esp + 0xf0]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x134]
call fcn.00519780
push 0xffffffffffffffd1
push 0x40
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x2c
push dword [esp + 0xf0]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
add esp, 8
cmp dword [esp + 0x12c], 0
je 0x51617b
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x134]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050e3a0
add esp, 0x10
cmp dword [esp + 0x130], 0
je 0x5161a5
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x138]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.004ff010
add esp, 0x10
cmp dword [esp + 0x134], 0
je 0x5161cf
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x13c]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.004fe510
add esp, 0x10
cmp dword [esp + 0x138], 0
je 0x5161f9
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x140]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.004fe650
add esp, 0x10
cmp dword [esp + 0x13c], 0
je 0x516223
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x144]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.004fe510
add esp, 0x10
cmp dword [esp + 0x140], 0
je 0x51624d
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x148]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050da30
add esp, 0x10
cmp dword [esp + 0x144], 0
je 0x516277
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x14c]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050dbd0
add esp, 0x10
cmp dword [esp + 0x148], 0
je 0x5162f2
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x150]
call fcn.00519780
movzx eax, word [ebx + 0x68]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0050e150
add esp, 0x14
push dword [esp + 0x10]
push 0
push 1
push 0
push 2
push 4
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
push 0
push 1
push 0
push 2
push 0x20
push edi
call fcn.0051a810
add esp, 0x20
push ebp
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
add esp, 8
cmp dword [esp + 0x16c], 0
je 0x51631c
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x174]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050ea70
add esp, 0x10
cmp dword [esp + 0x170], 0
je 0x516346
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x178]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050eca0
add esp, 0x10
cmp dword [esp + 0x174], 0
je 0x516370
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x17c]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050e5e0
add esp, 0x10
cmp dword [esp + 0x178], 0
je 0x51639a
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x180]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050e800
add esp, 0x10
cmp dword [esp + 0x164], 0
je 0x5163c4
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x16c]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050de40
add esp, 0x10
cmp dword [esp + 0x168], 0
je 0x5163ee
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x170]
call fcn.00519780
lea eax, [esp + 0x44]
push eax
call fcn.0050dfa0
add esp, 0x10
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [esp + 0x50]
call eax
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [esp + 0x50]
call eax
push edi
call fcn.0051b600
mov ebp, eax
mov eax, dword [edi + 0x50]
push edi
mov dword [esp + 0x3c], eax
call fcn.0051b480
add esp, 0x18
test ebp, ebp
jne 0x516478
push ebx
push dword [esp + 0x4c]
call fcn.004fdac0
add esp, 8
lea eax, [ebp - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
push edi
call fcn.0051b480
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [esp + 0x54]
call eax
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [esp + 0x54]
call eax
push ebx
push dword [esp + 0x60]
call fcn.004fdac0
add esp, 0x1c
mov eax, 0xffffffd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
mov esi, dword [ebx + 0x10]
test esi, esi
jne 0x5164d0
push dword [ebx + 8]
mov eax, dword [ebx]
push 0x2c
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x5164b2
push ebp
call fcn.0051b4e0
push ebx
push dword [esp + 0x50]
call fcn.004fdac0
add esp, 0xc
lea eax, [esi - 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
push 0x2c
push 0
push esi
call fcn.005234c0
movzx eax, word [ebx + 0x68]
add esp, 0xc
inc eax
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x10], esi
mov edx, dword [esp + 0x198]
xor ecx, ecx
cmp edx, 1
je 0x5164e5
cmp edx, 2
setne cl
inc ecx
mov dword [esi + ecx*4], ebp
mov eax, dword [esp + 0x48]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esp + 0x24]
pop edi
mov dword [esi + ecx*4 + 0x18], eax
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
push dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
call eax
add esp, 8
mov eax, dword [edi + 0x30]
test eax, eax
je 0x516524
push dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
call eax
add esp, 8
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push edi
call eax
add esp, 8
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [esp + 0x50]
call eax
push dword [ebx + 8]
push dword [esp + 0x50]
jmp 0x5154b3
pop esi
pop ebp
mov eax, 0xffffffd4
pop ebx
add esp, 0x180
ret